<html>
 <head>
  <meta charset="utf-8"/>
  <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport"/>
  <title>
   译：使用 scikit-learn 进行机器学习的简介  | 数螺 | NAUT IDEA
  </title>
  <link href="http://cdn.bootcss.com/bootstrap/3.3.6/css/bootstrap-theme.min.css" rel="stylesheet"/>
  <link href="http://cdn.bootcss.com/bootstrap/3.3.6/css/bootstrap.min.css" rel="stylesheet"/>
  <style type="text/css">
   #xmain img {
                  max-width: 100%;
                  display: block;
                  margin-top: 10px;
                  margin-bottom: 10px;
                }

                #xmain p {
                    line-height:150%;
                    font-size: 16px;
                    margin-top: 20px;
                }

                #xmain h2 {
                    font-size: 24px;
                }

                #xmain h3 {
                    font-size: 20px;
                }

                #xmain h4 {
                    font-size: 18px;
                }


                .header {
	           background-color: #0099ff;
	           color: #ffffff;
	           margin-bottom: 20px;
	        }

	        .header p {
                  margin: 0px;
                  padding: 10px 0;
                  display: inline-block;  
                  vertical-align: middle;
                  font-size: 16px;
               }

               .header a {
                 color: white;
               }

              .header img {
                 height: 25px;
              }
  </style>
  <script src="http://cdn.bootcss.com/jquery/3.0.0/jquery.min.js">
  </script>
  <script src="http://nautstatic-10007657.file.myqcloud.com/static/css/readability.min.js" type="text/javascript">
  </script>
  <script type="text/javascript">
   $(document).ready(function() {
                 var loc = document.location;
                 var uri = {
                  spec: "http://dataunion.org/19483.html",
                  host: "http://dataunion.org",
                  prePath: "http://dataunion.org",
                  scheme: "http",
                  pathBase: "http://dataunion.org/"
                 };
    
                 var documentClone = document.cloneNode(true);
                 var article = new Readability(uri, documentClone).parse();
     
                 document.getElementById("xmain").innerHTML = article.content;
                });
  </script>
  <!-- 1466457286: Accept with keywords: (title(0.0):社区,数盟, topn(0.5):社区,数字,数盟,分类器,行业资讯,数组,数据挖掘,预测,Python,标签,模型,参数,文章,可视化,手写,数据,属性,函数,回归,样本,问题,实例,拟合,字符串,基础架构,分类,样例,特征,图片,变量).-->
 </head>
 <body onload="">
  <div class="header">
   <div class="container">
    <div class="row">
     <div class="col-xs-6 col-sm-6 text-left">
      <a href="/databee">
       <img src="http://nautidea-10007657.cos.myqcloud.com/logo_white.png"/>
      </a>
      <a href="/databee">
       <p>
        数螺
       </p>
      </a>
     </div>
     <div class="hidden-xs col-sm-6 text-right">
      <p>
       致力于数据科学的推广和知识传播
      </p>
     </div>
    </div>
   </div>
  </div>
  <div class="container text-center">
   <h1>
    译：使用 scikit-learn 进行机器学习的简介
   </h1>
  </div>
  <div class="container" id="xmain">
   ﻿﻿
   <title>
    译：使用 scikit-learn 进行机器学习的简介 | 数盟社区
   </title>
   <!-- All in One SEO Pack 2.2.7.6.2 by Michael Torbert of Semper Fi Web Design[32,74] -->
   <!-- /all in one seo pack -->
   <!--
<div align="center">
<a href="http://strata.oreilly.com.cn/hadoop-big-data-cn?cmp=mp-data-confreg-home-stcn16_dataunion_pc" target="_blank"><img src="http://dataunion.org/wp-content/uploads/2016/05/stratabj.jpg"/ ></a>
</div>
-->
   <header id="header-web">
    <div class="header-main">
     <hgroup class="logo">
      <h1>
       <a href="http://dataunion.org/" rel="home" title="数盟社区">
        <img src="http://dataunion.org/wp-content/themes/yzipi/images/logo.png"/>
       </a>
      </h1>
     </hgroup>
     <!--logo-->
     <nav class="header-nav">
      <ul class="menu" id="menu-%e4%b8%bb%e8%8f%9c%e5%8d%95">
       <li class="menu-item menu-item-type-taxonomy menu-item-object-category menu-item-has-children menu-item-71" id="menu-item-71">
        <a href="http://dataunion.org/category/events" title="events">
         活动
        </a>
        <ul class="sub-menu">
         <li class="menu-item menu-item-type-post_type menu-item-object-page menu-item-22457" id="menu-item-22457">
          <a href="http://dataunion.org/2016timeline">
           2016档期
          </a>
         </li>
         <li class="menu-item menu-item-type-taxonomy menu-item-object-category menu-item-22459" id="menu-item-22459">
          <a href="http://dataunion.org/category/parterc">
           合作会议
          </a>
         </li>
        </ul>
       </li>
       <li class="menu-item menu-item-type-taxonomy menu-item-object-category current-post-ancestor current-menu-parent current-post-parent menu-item-has-children menu-item-20869" id="menu-item-20869">
        <a href="http://dataunion.org/category/tech" title="articles">
         文章
        </a>
        <ul class="sub-menu">
         <li class="menu-item menu-item-type-taxonomy menu-item-object-category menu-item-20867" id="menu-item-20867">
          <a href="http://dataunion.org/category/tech/base" title="base">
           基础架构
          </a>
         </li>
         <li class="menu-item menu-item-type-taxonomy menu-item-object-category menu-item-3302" id="menu-item-3302">
          <a href="http://dataunion.org/category/tech/ai" title="ai">
           人工智能
          </a>
         </li>
         <li class="menu-item menu-item-type-taxonomy menu-item-object-category menu-item-3303" id="menu-item-3303">
          <a href="http://dataunion.org/category/tech/analysis" title="analysis">
           数据分析
          </a>
         </li>
         <li class="menu-item menu-item-type-taxonomy menu-item-object-category menu-item-21920" id="menu-item-21920">
          <a href="http://dataunion.org/category/tech/dm">
           数据挖掘
          </a>
         </li>
         <li class="menu-item menu-item-type-taxonomy menu-item-object-category menu-item-3314" id="menu-item-3314">
          <a href="http://dataunion.org/category/tech/viz" title="viz">
           可视化
          </a>
         </li>
         <li class="menu-item menu-item-type-taxonomy menu-item-object-category menu-item-3305" id="menu-item-3305">
          <a href="http://dataunion.org/category/tech/devl" title="devl">
           编程语言
          </a>
         </li>
        </ul>
       </li>
       <li class="menu-item menu-item-type-taxonomy menu-item-object-category menu-item-has-children menu-item-20876" id="menu-item-20876">
        <a href="http://dataunion.org/category/industry">
         行业
        </a>
        <ul class="sub-menu">
         <li class="menu-item menu-item-type-taxonomy menu-item-object-category menu-item-16328" id="menu-item-16328">
          <a href="http://dataunion.org/category/industry/case" title="case">
           行业应用
          </a>
         </li>
         <li class="menu-item menu-item-type-taxonomy menu-item-object-category menu-item-2112" id="menu-item-2112">
          <a href="http://dataunion.org/category/industry/demo" title="demo">
           Demo展示
          </a>
         </li>
         <li class="menu-item menu-item-type-taxonomy menu-item-object-category menu-item-21562" id="menu-item-21562">
          <a href="http://dataunion.org/category/industry/news">
           行业资讯
          </a>
         </li>
        </ul>
       </li>
       <li class="menu-item menu-item-type-taxonomy menu-item-object-category menu-item-311" id="menu-item-311">
        <a href="http://dataunion.org/category/sources" title="sources">
         资源
        </a>
       </li>
       <li class="menu-item menu-item-type-taxonomy menu-item-object-category menu-item-20870" id="menu-item-20870">
        <a href="http://dataunion.org/category/books" title="book">
         图书
        </a>
       </li>
       <li class="menu-item menu-item-type-taxonomy menu-item-object-category menu-item-21363" id="menu-item-21363">
        <a href="http://dataunion.org/category/training">
         课程
        </a>
       </li>
       <li class="menu-item menu-item-type-taxonomy menu-item-object-category menu-item-has-children menu-item-21853" id="menu-item-21853">
        <a href="http://dataunion.org/category/jobs">
         职位
        </a>
        <ul class="sub-menu">
         <li class="menu-item menu-item-type-taxonomy menu-item-object-category menu-item-22050" id="menu-item-22050">
          <a href="http://dataunion.org/category/career">
           职业规划
          </a>
         </li>
        </ul>
       </li>
      </ul>
     </nav>
     <!--header-nav-->
    </div>
   </header>
   <!--header-web-->
   <div id="main">
    <div id="soutab">
     <form action="http://dataunion.org/" class="search" method="get">
     </form>
    </div>
    <div id="container">
     <nav id="mbx">
      当前位置：
      <a href="http://dataunion.org">
       首页
      </a>
      &gt;
      <a href="http://dataunion.org/category/tech">
       文章
      </a>
      &gt;  正文
     </nav>
     <!--mbx-->
     <article class="content">
      <header align="centre" class="contenttitle">
       <div class="mscc">
        <h1 class="mscctitle">
         <a href="http://dataunion.org/19483.html">
          译：使用 scikit-learn 进行机器学习的简介
         </a>
        </h1>
        <address class="msccaddress ">
         <em>
          2,284 次阅读 -
         </em>
         <a href="http://dataunion.org/category/tech" rel="category tag">
          文章
         </a>
        </address>
       </div>
      </header>
      <div class="content-text">
       <p>
        出处：
        <a href="http://www.cnblogs.com/taceywong/p/4568806.html">
         Tacey Wong的博客
        </a>
       </p>
       <p>
        <code>
         概要
        </code>
        ：
        <br/>
        该章节，我们将介绍贯穿scikit-learn使用中的“机器学习（Machine Learning）”这个词汇，并给出一些简单的学习示例。
       </p>
       <h2>
        一、机器学习：问题设定
       </h2>
       <p>
        通常，一个学习问题是通过分析一些数据样本来尝试预测未知数据的属性。如果每一个样本不仅仅是一个单独的数字，比如一个多维的实例（multivariate data），也就是说有着多个属性特征
       </p>
       <p>
        我们可以把学习问题分成如下的几个大类：
       </p>
       <ul>
        <li>
         （1）有监督学习
         <br/>
         数据带有我们要预测的属性。这种问题主要有如下几种：
         <p>
         </p>
         <ul>
          <li>
           ①分类
           <br/>
           样例属于两类或多类，我们想要从已经带有标签的数据学习以预测未带标签的数据。识别手写数字就是一个分类问题，这个问题的主要目标就是把每一个输出指派到一个有限的类别中的一类。另一种思路去思考分类问题，其实分类问题是有监督学习中的离散形式问题。每一个都有一个有限的分类。对于样例提供的多个标签，我们要做的就是把未知类别的数据划分到其中的一种。
          </li>
          <li>
           ②回归
           <br/>
           去过预期的输出包含连续的变量，那么这样的任务叫做回归。根据三文鱼的年纪和中联预测其长度就是一个回归样例。
          </li>
         </ul>
        </li>
        <li>
         （2）无监督学习
         <br/>
         训练数据包含不带有目标值的输入向量x。对于这些问题，目标就是根据数据发现样本中相似的群组——聚类。或者在输入空间中判定数据的分布——密度估计，或者把数据从高维空间转换到低维空间以用于可视化
        </li>
       </ul>
       <blockquote>
        <p>
         <code>
          训练集和测试集
         </code>
         <br/>
         机器学习是学习一些数据集的特征属性并将其应用于新的数据。这就是为什么在机器学习用来评估算法时一般把手中的数据分成两部分。一部分我们称之为训练集，用以学习数据的特征属性。一部分我们称之为测试集，用以检验学习到的特征属性。
        </p>
       </blockquote>
       <h2>
        二、加载一个样本数据集
       </h2>
       <p>
        scikit-learn带有一些标准数据集。比如用来分类的iris数据集、digits数据集；用来回归的boston house price 数据集。
       </p>
       <p>
        接下来，我们我们从shell开启一个Python解释器并加载iris和digits两个数据集。【译注：一些代码惯例就不写了，提示符&gt;&gt;&gt;之类的学过Python的都懂】
       </p>
       <blockquote>
        <p>
        </p>
        <!-- Crayon Syntax Highlighter v_2.7.2_beta -->
        <div class="crayon-syntax crayon-theme-classic crayon-font-monaco crayon-os-pc print-yes notranslate" data-settings=" minimize scroll-mouseover" id="crayon-57685cbe83dae019275788" style=" margin-top: 12px; margin-bottom: 12px; font-size: 12px !important; line-height: 15px !important;">
         <div class="crayon-toolbar" data-settings=" mouseover overlay hide delay" style="font-size: 12px !important;height: 18px !important; line-height: 18px !important;">
          <span class="crayon-title">
          </span>
          <div class="crayon-tools" style="font-size: 12px !important;height: 18px !important; line-height: 18px !important;">
           <div class="crayon-button crayon-nums-button" title="切换是否显示行编号">
            <div class="crayon-button-icon">
            </div>
           </div>
           <div class="crayon-button crayon-plain-button" title="纯文本显示代码">
            <div class="crayon-button-icon">
            </div>
           </div>
           <div class="crayon-button crayon-wrap-button" title="切换自动换行">
            <div class="crayon-button-icon">
            </div>
           </div>
           <div class="crayon-button crayon-expand-button" title="点击展开代码">
            <div class="crayon-button-icon">
            </div>
           </div>
           <div class="crayon-button crayon-copy-button" title="复制代码">
            <div class="crayon-button-icon">
            </div>
           </div>
           <div class="crayon-button crayon-popup-button" title="在新窗口中显示代码">
            <div class="crayon-button-icon">
            </div>
           </div>
          </div>
         </div>
         <div class="crayon-info" style="min-height: 16.8px !important; line-height: 16.8px !important;">
         </div>
         <div class="crayon-plain-wrap">
          <textarea class="crayon-plain print-no" data-settings="dblclick" readonly="" style="-moz-tab-size:4; -o-tab-size:4; -webkit-tab-size:4; tab-size:4; font-size: 12px !important; line-height: 15px !important;" wrap="soft">
           $ python
&amp;gt;&amp;gt;&amp;gt;&lt;span class="hljs-keyword"&gt;from&lt;/span&gt; sklearn &lt;span class="hljs-keyword"&gt;import&lt;/span&gt; datasets
&amp;gt;&amp;gt;&amp;gt;iris = datasets.load_iris()
&amp;gt;&amp;gt;&amp;gt;digits = datasets.load_digits()
          </textarea>
         </div>
         <div class="crayon-main" style="">
          <table class="crayon-table">
           <tbody>
            <tr class="crayon-row">
             <td class="crayon-nums " data-settings="show">
              <div class="crayon-nums-content" style="font-size: 12px !important; line-height: 15px !important;">
               <div class="crayon-num" data-line="crayon-57685cbe83dae019275788-1">
                1
               </div>
               <div class="crayon-num crayon-striped-num" data-line="crayon-57685cbe83dae019275788-2">
                2
               </div>
               <div class="crayon-num" data-line="crayon-57685cbe83dae019275788-3">
                3
               </div>
               <div class="crayon-num crayon-striped-num" data-line="crayon-57685cbe83dae019275788-4">
                4
               </div>
              </div>
             </td>
             <td class="crayon-code">
              <div class="crayon-pre" style="font-size: 12px !important; line-height: 15px !important; -moz-tab-size:4; -o-tab-size:4; -webkit-tab-size:4; tab-size:4;">
               <div class="crayon-line" id="crayon-57685cbe83dae019275788-1">
                <span class="crayon-sy">
                 $
                </span>
                <span class="crayon-h">
                </span>
                <span class="crayon-v">
                 python
                </span>
               </div>
               <div class="crayon-line crayon-striped-line" id="crayon-57685cbe83dae019275788-2">
                <span class="crayon-o">
                 &amp;
                </span>
                <span class="crayon-v">
                 gt
                </span>
                <span class="crayon-sy">
                 ;
                </span>
                <span class="crayon-o">
                 &amp;
                </span>
                <span class="crayon-v">
                 gt
                </span>
                <span class="crayon-sy">
                 ;
                </span>
                <span class="crayon-o">
                 &amp;
                </span>
                <span class="crayon-v">
                 gt
                </span>
                <span class="crayon-sy">
                 ;
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-e">
                 span
                </span>
                <span class="crayon-t">
                 class
                </span>
                <span class="crayon-o">
                 =
                </span>
                <span class="crayon-s">
                 "hljs-keyword"
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-v">
                 from
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-o">
                 /
                </span>
                <span class="crayon-v">
                 span
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-h">
                </span>
                <span class="crayon-v">
                 sklearn
                </span>
                <span class="crayon-h">
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-e">
                 span
                </span>
                <span class="crayon-t">
                 class
                </span>
                <span class="crayon-o">
                 =
                </span>
                <span class="crayon-s">
                 "hljs-keyword"
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-v">
                 import
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-o">
                 /
                </span>
                <span class="crayon-v">
                 span
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-h">
                </span>
                <span class="crayon-v">
                 datasets
                </span>
               </div>
               <div class="crayon-line" id="crayon-57685cbe83dae019275788-3">
                <span class="crayon-o">
                 &amp;
                </span>
                <span class="crayon-v">
                 gt
                </span>
                <span class="crayon-sy">
                 ;
                </span>
                <span class="crayon-o">
                 &amp;
                </span>
                <span class="crayon-v">
                 gt
                </span>
                <span class="crayon-sy">
                 ;
                </span>
                <span class="crayon-o">
                 &amp;
                </span>
                <span class="crayon-v">
                 gt
                </span>
                <span class="crayon-sy">
                 ;
                </span>
                <span class="crayon-v">
                 iris
                </span>
                <span class="crayon-h">
                </span>
                <span class="crayon-o">
                 =
                </span>
                <span class="crayon-h">
                </span>
                <span class="crayon-v">
                 datasets
                </span>
                <span class="crayon-sy">
                 .
                </span>
                <span class="crayon-e">
                 load_iris
                </span>
                <span class="crayon-sy">
                 (
                </span>
                <span class="crayon-sy">
                 )
                </span>
               </div>
               <div class="crayon-line crayon-striped-line" id="crayon-57685cbe83dae019275788-4">
                <span class="crayon-o">
                 &amp;
                </span>
                <span class="crayon-v">
                 gt
                </span>
                <span class="crayon-sy">
                 ;
                </span>
                <span class="crayon-o">
                 &amp;
                </span>
                <span class="crayon-v">
                 gt
                </span>
                <span class="crayon-sy">
                 ;
                </span>
                <span class="crayon-o">
                 &amp;
                </span>
                <span class="crayon-v">
                 gt
                </span>
                <span class="crayon-sy">
                 ;
                </span>
                <span class="crayon-v">
                 digits
                </span>
                <span class="crayon-h">
                </span>
                <span class="crayon-o">
                 =
                </span>
                <span class="crayon-h">
                </span>
                <span class="crayon-v">
                 datasets
                </span>
                <span class="crayon-sy">
                 .
                </span>
                <span class="crayon-e">
                 load_digits
                </span>
                <span class="crayon-sy">
                 (
                </span>
                <span class="crayon-sy">
                 )
                </span>
               </div>
              </div>
             </td>
            </tr>
           </tbody>
          </table>
         </div>
        </div>
        <!-- [Format Time: 0.0110 seconds] -->
        <p>
        </p>
       </blockquote>
       <p>
        一个数据集是一个包含数据所有元数据的类字典对象。这个数据存储在 ‘.data’成员变量中，是一个$n*n$的数组，行表示样例，列表示特征。在有监督学习问题中，一个或多个响应变量（Y）存储在‘.target’成员变量中。不同数据集的更多细节可以在dedicated section中找到。
       </p>
       <p>
        例如，对于digits数据集，digits.data可以访问得到用来对数字进行分类的特征：
       </p>
       <blockquote>
        <p>
        </p>
        <!-- Crayon Syntax Highlighter v_2.7.2_beta -->
        <div class="crayon-syntax crayon-theme-classic crayon-font-monaco crayon-os-pc print-yes notranslate" data-settings=" minimize scroll-mouseover" id="crayon-57685cbe83dbf871798500" style=" margin-top: 12px; margin-bottom: 12px; font-size: 12px !important; line-height: 15px !important;">
         <div class="crayon-toolbar" data-settings=" mouseover overlay hide delay" style="font-size: 12px !important;height: 18px !important; line-height: 18px !important;">
          <span class="crayon-title">
          </span>
          <div class="crayon-tools" style="font-size: 12px !important;height: 18px !important; line-height: 18px !important;">
           <div class="crayon-button crayon-nums-button" title="切换是否显示行编号">
            <div class="crayon-button-icon">
            </div>
           </div>
           <div class="crayon-button crayon-plain-button" title="纯文本显示代码">
            <div class="crayon-button-icon">
            </div>
           </div>
           <div class="crayon-button crayon-wrap-button" title="切换自动换行">
            <div class="crayon-button-icon">
            </div>
           </div>
           <div class="crayon-button crayon-expand-button" title="点击展开代码">
            <div class="crayon-button-icon">
            </div>
           </div>
           <div class="crayon-button crayon-copy-button" title="复制代码">
            <div class="crayon-button-icon">
            </div>
           </div>
           <div class="crayon-button crayon-popup-button" title="在新窗口中显示代码">
            <div class="crayon-button-icon">
            </div>
           </div>
          </div>
         </div>
         <div class="crayon-info" style="min-height: 16.8px !important; line-height: 16.8px !important;">
         </div>
         <div class="crayon-plain-wrap">
          <textarea class="crayon-plain print-no" data-settings="dblclick" readonly="" style="-moz-tab-size:4; -o-tab-size:4; -webkit-tab-size:4; tab-size:4; font-size: 12px !important; line-height: 15px !important;" wrap="soft">
           &amp;gt;&amp;gt;&amp;gt;print(digits.data)  
[[  &lt;span class="hljs-number"&gt;0.&lt;/span&gt;   &lt;span class="hljs-number"&gt;0.&lt;/span&gt;   &lt;span class="hljs-number"&gt;5.&lt;/span&gt; ...,   &lt;span class="hljs-number"&gt;0.&lt;/span&gt;   &lt;span class="hljs-number"&gt;0.&lt;/span&gt;   &lt;span class="hljs-number"&gt;0.&lt;/span&gt;]
 [  &lt;span class="hljs-number"&gt;0.&lt;/span&gt;   &lt;span class="hljs-number"&gt;0.&lt;/span&gt;   &lt;span class="hljs-number"&gt;0.&lt;/span&gt; ...,  &lt;span class="hljs-number"&gt;10.&lt;/span&gt;   &lt;span class="hljs-number"&gt;0.&lt;/span&gt;   &lt;span class="hljs-number"&gt;0.&lt;/span&gt;]
 [  &lt;span class="hljs-number"&gt;0.&lt;/span&gt;   &lt;span class="hljs-number"&gt;0.&lt;/span&gt;   &lt;span class="hljs-number"&gt;0.&lt;/span&gt; ...,  &lt;span class="hljs-number"&gt;16.&lt;/span&gt;   &lt;span class="hljs-number"&gt;9.&lt;/span&gt;   &lt;span class="hljs-number"&gt;0.&lt;/span&gt;]
 ...,
 [  &lt;span class="hljs-number"&gt;0.&lt;/span&gt;   &lt;span class="hljs-number"&gt;0.&lt;/span&gt;   &lt;span class="hljs-number"&gt;1.&lt;/span&gt; ...,   &lt;span class="hljs-number"&gt;6.&lt;/span&gt;   &lt;span class="hljs-number"&gt;0.&lt;/span&gt;   &lt;span class="hljs-number"&gt;0.&lt;/span&gt;]
 [  &lt;span class="hljs-number"&gt;0.&lt;/span&gt;   &lt;span class="hljs-number"&gt;0.&lt;/span&gt;   &lt;span class="hljs-number"&gt;2.&lt;/span&gt; ...,  &lt;span class="hljs-number"&gt;12.&lt;/span&gt;   &lt;span class="hljs-number"&gt;0.&lt;/span&gt;   &lt;span class="hljs-number"&gt;0.&lt;/span&gt;]
 [  &lt;span class="hljs-number"&gt;0.&lt;/span&gt;   &lt;span class="hljs-number"&gt;0.&lt;/span&gt;  &lt;span class="hljs-number"&gt;10.&lt;/span&gt; ...,  &lt;span class="hljs-number"&gt;12.&lt;/span&gt;   &lt;span class="hljs-number"&gt;1.&lt;/span&gt;   &lt;span class="hljs-number"&gt;0.&lt;/span&gt;]]
          </textarea>
         </div>
         <div class="crayon-main" style="">
          <table class="crayon-table">
           <tbody>
            <tr class="crayon-row">
             <td class="crayon-nums " data-settings="show">
              <div class="crayon-nums-content" style="font-size: 12px !important; line-height: 15px !important;">
               <div class="crayon-num" data-line="crayon-57685cbe83dbf871798500-1">
                1
               </div>
               <div class="crayon-num crayon-striped-num" data-line="crayon-57685cbe83dbf871798500-2">
                2
               </div>
               <div class="crayon-num" data-line="crayon-57685cbe83dbf871798500-3">
                3
               </div>
               <div class="crayon-num crayon-striped-num" data-line="crayon-57685cbe83dbf871798500-4">
                4
               </div>
               <div class="crayon-num" data-line="crayon-57685cbe83dbf871798500-5">
                5
               </div>
               <div class="crayon-num crayon-striped-num" data-line="crayon-57685cbe83dbf871798500-6">
                6
               </div>
               <div class="crayon-num" data-line="crayon-57685cbe83dbf871798500-7">
                7
               </div>
               <div class="crayon-num crayon-striped-num" data-line="crayon-57685cbe83dbf871798500-8">
                8
               </div>
              </div>
             </td>
             <td class="crayon-code">
              <div class="crayon-pre" style="font-size: 12px !important; line-height: 15px !important; -moz-tab-size:4; -o-tab-size:4; -webkit-tab-size:4; tab-size:4;">
               <div class="crayon-line" id="crayon-57685cbe83dbf871798500-1">
                <span class="crayon-o">
                 &amp;
                </span>
                <span class="crayon-v">
                 gt
                </span>
                <span class="crayon-sy">
                 ;
                </span>
                <span class="crayon-o">
                 &amp;
                </span>
                <span class="crayon-v">
                 gt
                </span>
                <span class="crayon-sy">
                 ;
                </span>
                <span class="crayon-o">
                 &amp;
                </span>
                <span class="crayon-v">
                 gt
                </span>
                <span class="crayon-sy">
                 ;
                </span>
                <span class="crayon-e">
                 print
                </span>
                <span class="crayon-sy">
                 (
                </span>
                <span class="crayon-v">
                 digits
                </span>
                <span class="crayon-sy">
                 .
                </span>
                <span class="crayon-v">
                 data
                </span>
                <span class="crayon-sy">
                 )
                </span>
                <span class="crayon-h">
                </span>
               </div>
               <div class="crayon-line crayon-striped-line" id="crayon-57685cbe83dbf871798500-2">
                <span class="crayon-sy">
                 [
                </span>
                <span class="crayon-sy">
                 [
                </span>
                <span class="crayon-h">
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-e">
                 span
                </span>
                <span class="crayon-t">
                 class
                </span>
                <span class="crayon-o">
                 =
                </span>
                <span class="crayon-s">
                 "hljs-number"
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-cn">
                 0.
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-o">
                 /
                </span>
                <span class="crayon-v">
                 span
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-h">
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-e">
                 span
                </span>
                <span class="crayon-t">
                 class
                </span>
                <span class="crayon-o">
                 =
                </span>
                <span class="crayon-s">
                 "hljs-number"
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-cn">
                 0.
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-o">
                 /
                </span>
                <span class="crayon-v">
                 span
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-h">
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-e">
                 span
                </span>
                <span class="crayon-t">
                 class
                </span>
                <span class="crayon-o">
                 =
                </span>
                <span class="crayon-s">
                 "hljs-number"
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-cn">
                 5.
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-o">
                 /
                </span>
                <span class="crayon-v">
                 span
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-h">
                </span>
                <span class="crayon-sy">
                 .
                </span>
                <span class="crayon-sy">
                 .
                </span>
                <span class="crayon-sy">
                 .
                </span>
                <span class="crayon-sy">
                 ,
                </span>
                <span class="crayon-h">
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-e">
                 span
                </span>
                <span class="crayon-t">
                 class
                </span>
                <span class="crayon-o">
                 =
                </span>
                <span class="crayon-s">
                 "hljs-number"
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-cn">
                 0.
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-o">
                 /
                </span>
                <span class="crayon-v">
                 span
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-h">
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-e">
                 span
                </span>
                <span class="crayon-t">
                 class
                </span>
                <span class="crayon-o">
                 =
                </span>
                <span class="crayon-s">
                 "hljs-number"
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-cn">
                 0.
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-o">
                 /
                </span>
                <span class="crayon-v">
                 span
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-h">
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-e">
                 span
                </span>
                <span class="crayon-t">
                 class
                </span>
                <span class="crayon-o">
                 =
                </span>
                <span class="crayon-s">
                 "hljs-number"
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-cn">
                 0.
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-o">
                 /
                </span>
                <span class="crayon-v">
                 span
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-sy">
                 ]
                </span>
               </div>
               <div class="crayon-line" id="crayon-57685cbe83dbf871798500-3">
                <span class="crayon-h">
                </span>
                <span class="crayon-sy">
                 [
                </span>
                <span class="crayon-h">
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-e">
                 span
                </span>
                <span class="crayon-t">
                 class
                </span>
                <span class="crayon-o">
                 =
                </span>
                <span class="crayon-s">
                 "hljs-number"
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-cn">
                 0.
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-o">
                 /
                </span>
                <span class="crayon-v">
                 span
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-h">
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-e">
                 span
                </span>
                <span class="crayon-t">
                 class
                </span>
                <span class="crayon-o">
                 =
                </span>
                <span class="crayon-s">
                 "hljs-number"
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-cn">
                 0.
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-o">
                 /
                </span>
                <span class="crayon-v">
                 span
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-h">
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-e">
                 span
                </span>
                <span class="crayon-t">
                 class
                </span>
                <span class="crayon-o">
                 =
                </span>
                <span class="crayon-s">
                 "hljs-number"
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-cn">
                 0.
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-o">
                 /
                </span>
                <span class="crayon-v">
                 span
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-h">
                </span>
                <span class="crayon-sy">
                 .
                </span>
                <span class="crayon-sy">
                 .
                </span>
                <span class="crayon-sy">
                 .
                </span>
                <span class="crayon-sy">
                 ,
                </span>
                <span class="crayon-h">
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-e">
                 span
                </span>
                <span class="crayon-t">
                 class
                </span>
                <span class="crayon-o">
                 =
                </span>
                <span class="crayon-s">
                 "hljs-number"
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-cn">
                 10.
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-o">
                 /
                </span>
                <span class="crayon-v">
                 span
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-h">
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-e">
                 span
                </span>
                <span class="crayon-t">
                 class
                </span>
                <span class="crayon-o">
                 =
                </span>
                <span class="crayon-s">
                 "hljs-number"
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-cn">
                 0.
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-o">
                 /
                </span>
                <span class="crayon-v">
                 span
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-h">
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-e">
                 span
                </span>
                <span class="crayon-t">
                 class
                </span>
                <span class="crayon-o">
                 =
                </span>
                <span class="crayon-s">
                 "hljs-number"
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-cn">
                 0.
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-o">
                 /
                </span>
                <span class="crayon-v">
                 span
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-sy">
                 ]
                </span>
               </div>
               <div class="crayon-line crayon-striped-line" id="crayon-57685cbe83dbf871798500-4">
                <span class="crayon-h">
                </span>
                <span class="crayon-sy">
                 [
                </span>
                <span class="crayon-h">
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-e">
                 span
                </span>
                <span class="crayon-t">
                 class
                </span>
                <span class="crayon-o">
                 =
                </span>
                <span class="crayon-s">
                 "hljs-number"
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-cn">
                 0.
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-o">
                 /
                </span>
                <span class="crayon-v">
                 span
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-h">
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-e">
                 span
                </span>
                <span class="crayon-t">
                 class
                </span>
                <span class="crayon-o">
                 =
                </span>
                <span class="crayon-s">
                 "hljs-number"
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-cn">
                 0.
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-o">
                 /
                </span>
                <span class="crayon-v">
                 span
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-h">
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-e">
                 span
                </span>
                <span class="crayon-t">
                 class
                </span>
                <span class="crayon-o">
                 =
                </span>
                <span class="crayon-s">
                 "hljs-number"
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-cn">
                 0.
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-o">
                 /
                </span>
                <span class="crayon-v">
                 span
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-h">
                </span>
                <span class="crayon-sy">
                 .
                </span>
                <span class="crayon-sy">
                 .
                </span>
                <span class="crayon-sy">
                 .
                </span>
                <span class="crayon-sy">
                 ,
                </span>
                <span class="crayon-h">
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-e">
                 span
                </span>
                <span class="crayon-t">
                 class
                </span>
                <span class="crayon-o">
                 =
                </span>
                <span class="crayon-s">
                 "hljs-number"
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-cn">
                 16.
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-o">
                 /
                </span>
                <span class="crayon-v">
                 span
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-h">
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-e">
                 span
                </span>
                <span class="crayon-t">
                 class
                </span>
                <span class="crayon-o">
                 =
                </span>
                <span class="crayon-s">
                 "hljs-number"
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-cn">
                 9.
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-o">
                 /
                </span>
                <span class="crayon-v">
                 span
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-h">
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-e">
                 span
                </span>
                <span class="crayon-t">
                 class
                </span>
                <span class="crayon-o">
                 =
                </span>
                <span class="crayon-s">
                 "hljs-number"
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-cn">
                 0.
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-o">
                 /
                </span>
                <span class="crayon-v">
                 span
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-sy">
                 ]
                </span>
               </div>
               <div class="crayon-line" id="crayon-57685cbe83dbf871798500-5">
                <span class="crayon-h">
                </span>
                <span class="crayon-sy">
                 .
                </span>
                <span class="crayon-sy">
                 .
                </span>
                <span class="crayon-sy">
                 .
                </span>
                <span class="crayon-sy">
                 ,
                </span>
               </div>
               <div class="crayon-line crayon-striped-line" id="crayon-57685cbe83dbf871798500-6">
                <span class="crayon-h">
                </span>
                <span class="crayon-sy">
                 [
                </span>
                <span class="crayon-h">
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-e">
                 span
                </span>
                <span class="crayon-t">
                 class
                </span>
                <span class="crayon-o">
                 =
                </span>
                <span class="crayon-s">
                 "hljs-number"
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-cn">
                 0.
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-o">
                 /
                </span>
                <span class="crayon-v">
                 span
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-h">
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-e">
                 span
                </span>
                <span class="crayon-t">
                 class
                </span>
                <span class="crayon-o">
                 =
                </span>
                <span class="crayon-s">
                 "hljs-number"
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-cn">
                 0.
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-o">
                 /
                </span>
                <span class="crayon-v">
                 span
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-h">
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-e">
                 span
                </span>
                <span class="crayon-t">
                 class
                </span>
                <span class="crayon-o">
                 =
                </span>
                <span class="crayon-s">
                 "hljs-number"
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-cn">
                 1.
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-o">
                 /
                </span>
                <span class="crayon-v">
                 span
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-h">
                </span>
                <span class="crayon-sy">
                 .
                </span>
                <span class="crayon-sy">
                 .
                </span>
                <span class="crayon-sy">
                 .
                </span>
                <span class="crayon-sy">
                 ,
                </span>
                <span class="crayon-h">
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-e">
                 span
                </span>
                <span class="crayon-t">
                 class
                </span>
                <span class="crayon-o">
                 =
                </span>
                <span class="crayon-s">
                 "hljs-number"
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-cn">
                 6.
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-o">
                 /
                </span>
                <span class="crayon-v">
                 span
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-h">
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-e">
                 span
                </span>
                <span class="crayon-t">
                 class
                </span>
                <span class="crayon-o">
                 =
                </span>
                <span class="crayon-s">
                 "hljs-number"
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-cn">
                 0.
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-o">
                 /
                </span>
                <span class="crayon-v">
                 span
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-h">
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-e">
                 span
                </span>
                <span class="crayon-t">
                 class
                </span>
                <span class="crayon-o">
                 =
                </span>
                <span class="crayon-s">
                 "hljs-number"
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-cn">
                 0.
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-o">
                 /
                </span>
                <span class="crayon-v">
                 span
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-sy">
                 ]
                </span>
               </div>
               <div class="crayon-line" id="crayon-57685cbe83dbf871798500-7">
                <span class="crayon-h">
                </span>
                <span class="crayon-sy">
                 [
                </span>
                <span class="crayon-h">
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-e">
                 span
                </span>
                <span class="crayon-t">
                 class
                </span>
                <span class="crayon-o">
                 =
                </span>
                <span class="crayon-s">
                 "hljs-number"
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-cn">
                 0.
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-o">
                 /
                </span>
                <span class="crayon-v">
                 span
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-h">
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-e">
                 span
                </span>
                <span class="crayon-t">
                 class
                </span>
                <span class="crayon-o">
                 =
                </span>
                <span class="crayon-s">
                 "hljs-number"
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-cn">
                 0.
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-o">
                 /
                </span>
                <span class="crayon-v">
                 span
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-h">
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-e">
                 span
                </span>
                <span class="crayon-t">
                 class
                </span>
                <span class="crayon-o">
                 =
                </span>
                <span class="crayon-s">
                 "hljs-number"
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-cn">
                 2.
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-o">
                 /
                </span>
                <span class="crayon-v">
                 span
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-h">
                </span>
                <span class="crayon-sy">
                 .
                </span>
                <span class="crayon-sy">
                 .
                </span>
                <span class="crayon-sy">
                 .
                </span>
                <span class="crayon-sy">
                 ,
                </span>
                <span class="crayon-h">
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-e">
                 span
                </span>
                <span class="crayon-t">
                 class
                </span>
                <span class="crayon-o">
                 =
                </span>
                <span class="crayon-s">
                 "hljs-number"
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-cn">
                 12.
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-o">
                 /
                </span>
                <span class="crayon-v">
                 span
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-h">
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-e">
                 span
                </span>
                <span class="crayon-t">
                 class
                </span>
                <span class="crayon-o">
                 =
                </span>
                <span class="crayon-s">
                 "hljs-number"
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-cn">
                 0.
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-o">
                 /
                </span>
                <span class="crayon-v">
                 span
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-h">
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-e">
                 span
                </span>
                <span class="crayon-t">
                 class
                </span>
                <span class="crayon-o">
                 =
                </span>
                <span class="crayon-s">
                 "hljs-number"
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-cn">
                 0.
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-o">
                 /
                </span>
                <span class="crayon-v">
                 span
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-sy">
                 ]
                </span>
               </div>
               <div class="crayon-line crayon-striped-line" id="crayon-57685cbe83dbf871798500-8">
                <span class="crayon-h">
                </span>
                <span class="crayon-sy">
                 [
                </span>
                <span class="crayon-h">
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-e">
                 span
                </span>
                <span class="crayon-t">
                 class
                </span>
                <span class="crayon-o">
                 =
                </span>
                <span class="crayon-s">
                 "hljs-number"
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-cn">
                 0.
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-o">
                 /
                </span>
                <span class="crayon-v">
                 span
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-h">
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-e">
                 span
                </span>
                <span class="crayon-t">
                 class
                </span>
                <span class="crayon-o">
                 =
                </span>
                <span class="crayon-s">
                 "hljs-number"
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-cn">
                 0.
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-o">
                 /
                </span>
                <span class="crayon-v">
                 span
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-h">
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-e">
                 span
                </span>
                <span class="crayon-t">
                 class
                </span>
                <span class="crayon-o">
                 =
                </span>
                <span class="crayon-s">
                 "hljs-number"
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-cn">
                 10.
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-o">
                 /
                </span>
                <span class="crayon-v">
                 span
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-h">
                </span>
                <span class="crayon-sy">
                 .
                </span>
                <span class="crayon-sy">
                 .
                </span>
                <span class="crayon-sy">
                 .
                </span>
                <span class="crayon-sy">
                 ,
                </span>
                <span class="crayon-h">
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-e">
                 span
                </span>
                <span class="crayon-t">
                 class
                </span>
                <span class="crayon-o">
                 =
                </span>
                <span class="crayon-s">
                 "hljs-number"
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-cn">
                 12.
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-o">
                 /
                </span>
                <span class="crayon-v">
                 span
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-h">
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-e">
                 span
                </span>
                <span class="crayon-t">
                 class
                </span>
                <span class="crayon-o">
                 =
                </span>
                <span class="crayon-s">
                 "hljs-number"
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-cn">
                 1.
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-o">
                 /
                </span>
                <span class="crayon-v">
                 span
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-h">
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-e">
                 span
                </span>
                <span class="crayon-t">
                 class
                </span>
                <span class="crayon-o">
                 =
                </span>
                <span class="crayon-s">
                 "hljs-number"
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-cn">
                 0.
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-o">
                 /
                </span>
                <span class="crayon-v">
                 span
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-sy">
                 ]
                </span>
                <span class="crayon-sy">
                 ]
                </span>
               </div>
              </div>
             </td>
            </tr>
           </tbody>
          </table>
         </div>
        </div>
        <!-- [Format Time: 0.0988 seconds] -->
        <p>
        </p>
       </blockquote>
       <p>
        digits.target 就是数字数据集对应的真实数字值。也就是我们的程序要学习的。
       </p>
       <blockquote>
        <p>
        </p>
        <!-- Crayon Syntax Highlighter v_2.7.2_beta -->
        <div class="crayon-syntax crayon-theme-classic crayon-font-monaco crayon-os-pc print-yes notranslate" data-settings=" minimize scroll-mouseover" id="crayon-57685cbe83dc9199789413" style=" margin-top: 12px; margin-bottom: 12px; font-size: 12px !important; line-height: 15px !important;">
         <div class="crayon-toolbar" data-settings=" mouseover overlay hide delay" style="font-size: 12px !important;height: 18px !important; line-height: 18px !important;">
          <span class="crayon-title">
          </span>
          <div class="crayon-tools" style="font-size: 12px !important;height: 18px !important; line-height: 18px !important;">
           <div class="crayon-button crayon-nums-button" title="切换是否显示行编号">
            <div class="crayon-button-icon">
            </div>
           </div>
           <div class="crayon-button crayon-plain-button" title="纯文本显示代码">
            <div class="crayon-button-icon">
            </div>
           </div>
           <div class="crayon-button crayon-wrap-button" title="切换自动换行">
            <div class="crayon-button-icon">
            </div>
           </div>
           <div class="crayon-button crayon-expand-button" title="点击展开代码">
            <div class="crayon-button-icon">
            </div>
           </div>
           <div class="crayon-button crayon-copy-button" title="复制代码">
            <div class="crayon-button-icon">
            </div>
           </div>
           <div class="crayon-button crayon-popup-button" title="在新窗口中显示代码">
            <div class="crayon-button-icon">
            </div>
           </div>
          </div>
         </div>
         <div class="crayon-info" style="min-height: 16.8px !important; line-height: 16.8px !important;">
         </div>
         <div class="crayon-plain-wrap">
          <textarea class="crayon-plain print-no" data-settings="dblclick" readonly="" style="-moz-tab-size:4; -o-tab-size:4; -webkit-tab-size:4; tab-size:4; font-size: 12px !important; line-height: 15px !important;" wrap="soft">
           &amp;gt;&amp;gt;&amp;gt;digits.target
array([&lt;span class="hljs-number"&gt;0&lt;/span&gt;, &lt;span class="hljs-number"&gt;1&lt;/span&gt;, &lt;span class="hljs-number"&gt;2&lt;/span&gt;, ..., &lt;span class="hljs-number"&gt;8&lt;/span&gt;, &lt;span class="hljs-number"&gt;9&lt;/span&gt;, &lt;span class="hljs-number"&gt;8&lt;/span&gt;])
          </textarea>
         </div>
         <div class="crayon-main" style="">
          <table class="crayon-table">
           <tbody>
            <tr class="crayon-row">
             <td class="crayon-nums " data-settings="show">
              <div class="crayon-nums-content" style="font-size: 12px !important; line-height: 15px !important;">
               <div class="crayon-num" data-line="crayon-57685cbe83dc9199789413-1">
                1
               </div>
               <div class="crayon-num crayon-striped-num" data-line="crayon-57685cbe83dc9199789413-2">
                2
               </div>
              </div>
             </td>
             <td class="crayon-code">
              <div class="crayon-pre" style="font-size: 12px !important; line-height: 15px !important; -moz-tab-size:4; -o-tab-size:4; -webkit-tab-size:4; tab-size:4;">
               <div class="crayon-line" id="crayon-57685cbe83dc9199789413-1">
                <span class="crayon-o">
                 &amp;
                </span>
                <span class="crayon-v">
                 gt
                </span>
                <span class="crayon-sy">
                 ;
                </span>
                <span class="crayon-o">
                 &amp;
                </span>
                <span class="crayon-v">
                 gt
                </span>
                <span class="crayon-sy">
                 ;
                </span>
                <span class="crayon-o">
                 &amp;
                </span>
                <span class="crayon-v">
                 gt
                </span>
                <span class="crayon-sy">
                 ;
                </span>
                <span class="crayon-v">
                 digits
                </span>
                <span class="crayon-sy">
                 .
                </span>
                <span class="crayon-e">
                 target
                </span>
               </div>
               <div class="crayon-line crayon-striped-line" id="crayon-57685cbe83dc9199789413-2">
                <span class="crayon-t">
                 array
                </span>
                <span class="crayon-sy">
                 (
                </span>
                <span class="crayon-sy">
                 [
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-e">
                 span
                </span>
                <span class="crayon-t">
                 class
                </span>
                <span class="crayon-o">
                 =
                </span>
                <span class="crayon-s">
                 "hljs-number"
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-cn">
                 0
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-o">
                 /
                </span>
                <span class="crayon-v">
                 span
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-sy">
                 ,
                </span>
                <span class="crayon-h">
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-e">
                 span
                </span>
                <span class="crayon-t">
                 class
                </span>
                <span class="crayon-o">
                 =
                </span>
                <span class="crayon-s">
                 "hljs-number"
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-cn">
                 1
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-o">
                 /
                </span>
                <span class="crayon-v">
                 span
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-sy">
                 ,
                </span>
                <span class="crayon-h">
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-e">
                 span
                </span>
                <span class="crayon-t">
                 class
                </span>
                <span class="crayon-o">
                 =
                </span>
                <span class="crayon-s">
                 "hljs-number"
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-cn">
                 2
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-o">
                 /
                </span>
                <span class="crayon-v">
                 span
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-sy">
                 ,
                </span>
                <span class="crayon-h">
                </span>
                <span class="crayon-sy">
                 .
                </span>
                <span class="crayon-sy">
                 .
                </span>
                <span class="crayon-sy">
                 .
                </span>
                <span class="crayon-sy">
                 ,
                </span>
                <span class="crayon-h">
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-e">
                 span
                </span>
                <span class="crayon-t">
                 class
                </span>
                <span class="crayon-o">
                 =
                </span>
                <span class="crayon-s">
                 "hljs-number"
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-cn">
                 8
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-o">
                 /
                </span>
                <span class="crayon-v">
                 span
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-sy">
                 ,
                </span>
                <span class="crayon-h">
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-e">
                 span
                </span>
                <span class="crayon-t">
                 class
                </span>
                <span class="crayon-o">
                 =
                </span>
                <span class="crayon-s">
                 "hljs-number"
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-cn">
                 9
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-o">
                 /
                </span>
                <span class="crayon-v">
                 span
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-sy">
                 ,
                </span>
                <span class="crayon-h">
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-e">
                 span
                </span>
                <span class="crayon-t">
                 class
                </span>
                <span class="crayon-o">
                 =
                </span>
                <span class="crayon-s">
                 "hljs-number"
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-cn">
                 8
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-o">
                 /
                </span>
                <span class="crayon-v">
                 span
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-sy">
                 ]
                </span>
                <span class="crayon-sy">
                 )
                </span>
               </div>
              </div>
             </td>
            </tr>
           </tbody>
          </table>
         </div>
        </div>
        <!-- [Format Time: 0.0208 seconds] -->
        <p>
         <code>
          数据数组的形状
         </code>
         <br/>
         尽管原始数据也许有不同的形状，但实际使用的数据通常是一个二维数组（n个样例，n个特征）。对于数字数据集，每一个原始的样例是一张（8 x 8）的图片,也能被使用：
        </p>
        <!-- Crayon Syntax Highlighter v_2.7.2_beta -->
        <div class="crayon-syntax crayon-theme-classic crayon-font-monaco crayon-os-pc print-yes notranslate" data-settings=" minimize scroll-mouseover" id="crayon-57685cbe83dcf655817431" style=" margin-top: 12px; margin-bottom: 12px; font-size: 12px !important; line-height: 15px !important;">
         <div class="crayon-toolbar" data-settings=" mouseover overlay hide delay" style="font-size: 12px !important;height: 18px !important; line-height: 18px !important;">
          <span class="crayon-title">
          </span>
          <div class="crayon-tools" style="font-size: 12px !important;height: 18px !important; line-height: 18px !important;">
           <div class="crayon-button crayon-nums-button" title="切换是否显示行编号">
            <div class="crayon-button-icon">
            </div>
           </div>
           <div class="crayon-button crayon-plain-button" title="纯文本显示代码">
            <div class="crayon-button-icon">
            </div>
           </div>
           <div class="crayon-button crayon-wrap-button" title="切换自动换行">
            <div class="crayon-button-icon">
            </div>
           </div>
           <div class="crayon-button crayon-expand-button" title="点击展开代码">
            <div class="crayon-button-icon">
            </div>
           </div>
           <div class="crayon-button crayon-copy-button" title="复制代码">
            <div class="crayon-button-icon">
            </div>
           </div>
           <div class="crayon-button crayon-popup-button" title="在新窗口中显示代码">
            <div class="crayon-button-icon">
            </div>
           </div>
          </div>
         </div>
         <div class="crayon-info" style="min-height: 16.8px !important; line-height: 16.8px !important;">
         </div>
         <div class="crayon-plain-wrap">
          <textarea class="crayon-plain print-no" data-settings="dblclick" readonly="" style="-moz-tab-size:4; -o-tab-size:4; -webkit-tab-size:4; tab-size:4; font-size: 12px !important; line-height: 15px !important;" wrap="soft">
           &amp;gt;&amp;gt;&amp;gt;digits.images[&lt;span class="hljs-number"&gt;0&lt;/span&gt;]
array([[  &lt;span class="hljs-number"&gt;0.&lt;/span&gt;,   &lt;span class="hljs-number"&gt;0.&lt;/span&gt;,   &lt;span class="hljs-number"&gt;5.&lt;/span&gt;,  &lt;span class="hljs-number"&gt;13.&lt;/span&gt;,   &lt;span class="hljs-number"&gt;9.&lt;/span&gt;,   &lt;span class="hljs-number"&gt;1.&lt;/span&gt;,   &lt;span class="hljs-number"&gt;0.&lt;/span&gt;,   &lt;span class="hljs-number"&gt;0.&lt;/span&gt;],
       [  &lt;span class="hljs-number"&gt;0.&lt;/span&gt;,   &lt;span class="hljs-number"&gt;0.&lt;/span&gt;,  &lt;span class="hljs-number"&gt;13.&lt;/span&gt;,  &lt;span class="hljs-number"&gt;15.&lt;/span&gt;,  &lt;span class="hljs-number"&gt;10.&lt;/span&gt;,  &lt;span class="hljs-number"&gt;15.&lt;/span&gt;,   &lt;span class="hljs-number"&gt;5.&lt;/span&gt;,   &lt;span class="hljs-number"&gt;0.&lt;/span&gt;],
       [  &lt;span class="hljs-number"&gt;0.&lt;/span&gt;,   &lt;span class="hljs-number"&gt;3.&lt;/span&gt;,  &lt;span class="hljs-number"&gt;15.&lt;/span&gt;,   &lt;span class="hljs-number"&gt;2.&lt;/span&gt;,   &lt;span class="hljs-number"&gt;0.&lt;/span&gt;,  &lt;span class="hljs-number"&gt;11.&lt;/span&gt;,   &lt;span class="hljs-number"&gt;8.&lt;/span&gt;,   &lt;span class="hljs-number"&gt;0.&lt;/span&gt;],
       [  &lt;span class="hljs-number"&gt;0.&lt;/span&gt;,   &lt;span class="hljs-number"&gt;4.&lt;/span&gt;,  &lt;span class="hljs-number"&gt;12.&lt;/span&gt;,   &lt;span class="hljs-number"&gt;0.&lt;/span&gt;,   &lt;span class="hljs-number"&gt;0.&lt;/span&gt;,   &lt;span class="hljs-number"&gt;8.&lt;/span&gt;,   &lt;span class="hljs-number"&gt;8.&lt;/span&gt;,   &lt;span class="hljs-number"&gt;0.&lt;/span&gt;],
       [  &lt;span class="hljs-number"&gt;0.&lt;/span&gt;,   &lt;span class="hljs-number"&gt;5.&lt;/span&gt;,   &lt;span class="hljs-number"&gt;8.&lt;/span&gt;,   &lt;span class="hljs-number"&gt;0.&lt;/span&gt;,   &lt;span class="hljs-number"&gt;0.&lt;/span&gt;,   &lt;span class="hljs-number"&gt;9.&lt;/span&gt;,   &lt;span class="hljs-number"&gt;8.&lt;/span&gt;,   &lt;span class="hljs-number"&gt;0.&lt;/span&gt;],
       [  &lt;span class="hljs-number"&gt;0.&lt;/span&gt;,   &lt;span class="hljs-number"&gt;4.&lt;/span&gt;,  &lt;span class="hljs-number"&gt;11.&lt;/span&gt;,   &lt;span class="hljs-number"&gt;0.&lt;/span&gt;,   &lt;span class="hljs-number"&gt;1.&lt;/span&gt;,  &lt;span class="hljs-number"&gt;12.&lt;/span&gt;,   &lt;span class="hljs-number"&gt;7.&lt;/span&gt;,   &lt;span class="hljs-number"&gt;0.&lt;/span&gt;],
       [  &lt;span class="hljs-number"&gt;0.&lt;/span&gt;,   &lt;span class="hljs-number"&gt;2.&lt;/span&gt;,  &lt;span class="hljs-number"&gt;14.&lt;/span&gt;,   &lt;span class="hljs-number"&gt;5.&lt;/span&gt;,  &lt;span class="hljs-number"&gt;10.&lt;/span&gt;,  &lt;span class="hljs-number"&gt;12.&lt;/span&gt;,   &lt;span class="hljs-number"&gt;0.&lt;/span&gt;,   &lt;span class="hljs-number"&gt;0.&lt;/span&gt;],
       [  &lt;span class="hljs-number"&gt;0.&lt;/span&gt;,   &lt;span class="hljs-number"&gt;0.&lt;/span&gt;,   &lt;span class="hljs-number"&gt;6.&lt;/span&gt;,  &lt;span class="hljs-number"&gt;13.&lt;/span&gt;,  &lt;span class="hljs-number"&gt;10.&lt;/span&gt;,   &lt;span class="hljs-number"&gt;0.&lt;/span&gt;,   &lt;span class="hljs-number"&gt;0.&lt;/span&gt;,   &lt;span class="hljs-number"&gt;0.&lt;/span&gt;]])
          </textarea>
         </div>
         <div class="crayon-main" style="">
          <table class="crayon-table">
           <tbody>
            <tr class="crayon-row">
             <td class="crayon-nums " data-settings="show">
              <div class="crayon-nums-content" style="font-size: 12px !important; line-height: 15px !important;">
               <div class="crayon-num" data-line="crayon-57685cbe83dcf655817431-1">
                1
               </div>
               <div class="crayon-num crayon-striped-num" data-line="crayon-57685cbe83dcf655817431-2">
                2
               </div>
               <div class="crayon-num" data-line="crayon-57685cbe83dcf655817431-3">
                3
               </div>
               <div class="crayon-num crayon-striped-num" data-line="crayon-57685cbe83dcf655817431-4">
                4
               </div>
               <div class="crayon-num" data-line="crayon-57685cbe83dcf655817431-5">
                5
               </div>
               <div class="crayon-num crayon-striped-num" data-line="crayon-57685cbe83dcf655817431-6">
                6
               </div>
               <div class="crayon-num" data-line="crayon-57685cbe83dcf655817431-7">
                7
               </div>
               <div class="crayon-num crayon-striped-num" data-line="crayon-57685cbe83dcf655817431-8">
                8
               </div>
               <div class="crayon-num" data-line="crayon-57685cbe83dcf655817431-9">
                9
               </div>
              </div>
             </td>
             <td class="crayon-code">
              <div class="crayon-pre" style="font-size: 12px !important; line-height: 15px !important; -moz-tab-size:4; -o-tab-size:4; -webkit-tab-size:4; tab-size:4;">
               <div class="crayon-line" id="crayon-57685cbe83dcf655817431-1">
                <span class="crayon-o">
                 &amp;
                </span>
                <span class="crayon-v">
                 gt
                </span>
                <span class="crayon-sy">
                 ;
                </span>
                <span class="crayon-o">
                 &amp;
                </span>
                <span class="crayon-v">
                 gt
                </span>
                <span class="crayon-sy">
                 ;
                </span>
                <span class="crayon-o">
                 &amp;
                </span>
                <span class="crayon-v">
                 gt
                </span>
                <span class="crayon-sy">
                 ;
                </span>
                <span class="crayon-v">
                 digits
                </span>
                <span class="crayon-sy">
                 .
                </span>
                <span class="crayon-v">
                 images
                </span>
                <span class="crayon-sy">
                 [
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-e">
                 span
                </span>
                <span class="crayon-t">
                 class
                </span>
                <span class="crayon-o">
                 =
                </span>
                <span class="crayon-s">
                 "hljs-number"
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-cn">
                 0
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-o">
                 /
                </span>
                <span class="crayon-v">
                 span
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-sy">
                 ]
                </span>
               </div>
               <div class="crayon-line crayon-striped-line" id="crayon-57685cbe83dcf655817431-2">
                <span class="crayon-t">
                 array
                </span>
                <span class="crayon-sy">
                 (
                </span>
                <span class="crayon-sy">
                 [
                </span>
                <span class="crayon-sy">
                 [
                </span>
                <span class="crayon-h">
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-e">
                 span
                </span>
                <span class="crayon-t">
                 class
                </span>
                <span class="crayon-o">
                 =
                </span>
                <span class="crayon-s">
                 "hljs-number"
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-cn">
                 0.
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-o">
                 /
                </span>
                <span class="crayon-v">
                 span
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-sy">
                 ,
                </span>
                <span class="crayon-h">
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-e">
                 span
                </span>
                <span class="crayon-t">
                 class
                </span>
                <span class="crayon-o">
                 =
                </span>
                <span class="crayon-s">
                 "hljs-number"
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-cn">
                 0.
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-o">
                 /
                </span>
                <span class="crayon-v">
                 span
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-sy">
                 ,
                </span>
                <span class="crayon-h">
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-e">
                 span
                </span>
                <span class="crayon-t">
                 class
                </span>
                <span class="crayon-o">
                 =
                </span>
                <span class="crayon-s">
                 "hljs-number"
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-cn">
                 5.
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-o">
                 /
                </span>
                <span class="crayon-v">
                 span
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-sy">
                 ,
                </span>
                <span class="crayon-h">
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-e">
                 span
                </span>
                <span class="crayon-t">
                 class
                </span>
                <span class="crayon-o">
                 =
                </span>
                <span class="crayon-s">
                 "hljs-number"
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-cn">
                 13.
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-o">
                 /
                </span>
                <span class="crayon-v">
                 span
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-sy">
                 ,
                </span>
                <span class="crayon-h">
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-e">
                 span
                </span>
                <span class="crayon-t">
                 class
                </span>
                <span class="crayon-o">
                 =
                </span>
                <span class="crayon-s">
                 "hljs-number"
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-cn">
                 9.
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-o">
                 /
                </span>
                <span class="crayon-v">
                 span
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-sy">
                 ,
                </span>
                <span class="crayon-h">
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-e">
                 span
                </span>
                <span class="crayon-t">
                 class
                </span>
                <span class="crayon-o">
                 =
                </span>
                <span class="crayon-s">
                 "hljs-number"
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-cn">
                 1.
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-o">
                 /
                </span>
                <span class="crayon-v">
                 span
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-sy">
                 ,
                </span>
                <span class="crayon-h">
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-e">
                 span
                </span>
                <span class="crayon-t">
                 class
                </span>
                <span class="crayon-o">
                 =
                </span>
                <span class="crayon-s">
                 "hljs-number"
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-cn">
                 0.
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-o">
                 /
                </span>
                <span class="crayon-v">
                 span
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-sy">
                 ,
                </span>
                <span class="crayon-h">
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-e">
                 span
                </span>
                <span class="crayon-t">
                 class
                </span>
                <span class="crayon-o">
                 =
                </span>
                <span class="crayon-s">
                 "hljs-number"
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-cn">
                 0.
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-o">
                 /
                </span>
                <span class="crayon-v">
                 span
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-sy">
                 ]
                </span>
                <span class="crayon-sy">
                 ,
                </span>
               </div>
               <div class="crayon-line" id="crayon-57685cbe83dcf655817431-3">
                <span class="crayon-h">
                </span>
                <span class="crayon-sy">
                 [
                </span>
                <span class="crayon-h">
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-e">
                 span
                </span>
                <span class="crayon-t">
                 class
                </span>
                <span class="crayon-o">
                 =
                </span>
                <span class="crayon-s">
                 "hljs-number"
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-cn">
                 0.
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-o">
                 /
                </span>
                <span class="crayon-v">
                 span
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-sy">
                 ,
                </span>
                <span class="crayon-h">
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-e">
                 span
                </span>
                <span class="crayon-t">
                 class
                </span>
                <span class="crayon-o">
                 =
                </span>
                <span class="crayon-s">
                 "hljs-number"
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-cn">
                 0.
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-o">
                 /
                </span>
                <span class="crayon-v">
                 span
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-sy">
                 ,
                </span>
                <span class="crayon-h">
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-e">
                 span
                </span>
                <span class="crayon-t">
                 class
                </span>
                <span class="crayon-o">
                 =
                </span>
                <span class="crayon-s">
                 "hljs-number"
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-cn">
                 13.
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-o">
                 /
                </span>
                <span class="crayon-v">
                 span
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-sy">
                 ,
                </span>
                <span class="crayon-h">
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-e">
                 span
                </span>
                <span class="crayon-t">
                 class
                </span>
                <span class="crayon-o">
                 =
                </span>
                <span class="crayon-s">
                 "hljs-number"
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-cn">
                 15.
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-o">
                 /
                </span>
                <span class="crayon-v">
                 span
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-sy">
                 ,
                </span>
                <span class="crayon-h">
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-e">
                 span
                </span>
                <span class="crayon-t">
                 class
                </span>
                <span class="crayon-o">
                 =
                </span>
                <span class="crayon-s">
                 "hljs-number"
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-cn">
                 10.
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-o">
                 /
                </span>
                <span class="crayon-v">
                 span
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-sy">
                 ,
                </span>
                <span class="crayon-h">
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-e">
                 span
                </span>
                <span class="crayon-t">
                 class
                </span>
                <span class="crayon-o">
                 =
                </span>
                <span class="crayon-s">
                 "hljs-number"
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-cn">
                 15.
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-o">
                 /
                </span>
                <span class="crayon-v">
                 span
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-sy">
                 ,
                </span>
                <span class="crayon-h">
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-e">
                 span
                </span>
                <span class="crayon-t">
                 class
                </span>
                <span class="crayon-o">
                 =
                </span>
                <span class="crayon-s">
                 "hljs-number"
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-cn">
                 5.
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-o">
                 /
                </span>
                <span class="crayon-v">
                 span
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-sy">
                 ,
                </span>
                <span class="crayon-h">
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-e">
                 span
                </span>
                <span class="crayon-t">
                 class
                </span>
                <span class="crayon-o">
                 =
                </span>
                <span class="crayon-s">
                 "hljs-number"
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-cn">
                 0.
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-o">
                 /
                </span>
                <span class="crayon-v">
                 span
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-sy">
                 ]
                </span>
                <span class="crayon-sy">
                 ,
                </span>
               </div>
               <div class="crayon-line crayon-striped-line" id="crayon-57685cbe83dcf655817431-4">
                <span class="crayon-h">
                </span>
                <span class="crayon-sy">
                 [
                </span>
                <span class="crayon-h">
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-e">
                 span
                </span>
                <span class="crayon-t">
                 class
                </span>
                <span class="crayon-o">
                 =
                </span>
                <span class="crayon-s">
                 "hljs-number"
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-cn">
                 0.
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-o">
                 /
                </span>
                <span class="crayon-v">
                 span
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-sy">
                 ,
                </span>
                <span class="crayon-h">
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-e">
                 span
                </span>
                <span class="crayon-t">
                 class
                </span>
                <span class="crayon-o">
                 =
                </span>
                <span class="crayon-s">
                 "hljs-number"
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-cn">
                 3.
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-o">
                 /
                </span>
                <span class="crayon-v">
                 span
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-sy">
                 ,
                </span>
                <span class="crayon-h">
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-e">
                 span
                </span>
                <span class="crayon-t">
                 class
                </span>
                <span class="crayon-o">
                 =
                </span>
                <span class="crayon-s">
                 "hljs-number"
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-cn">
                 15.
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-o">
                 /
                </span>
                <span class="crayon-v">
                 span
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-sy">
                 ,
                </span>
                <span class="crayon-h">
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-e">
                 span
                </span>
                <span class="crayon-t">
                 class
                </span>
                <span class="crayon-o">
                 =
                </span>
                <span class="crayon-s">
                 "hljs-number"
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-cn">
                 2.
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-o">
                 /
                </span>
                <span class="crayon-v">
                 span
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-sy">
                 ,
                </span>
                <span class="crayon-h">
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-e">
                 span
                </span>
                <span class="crayon-t">
                 class
                </span>
                <span class="crayon-o">
                 =
                </span>
                <span class="crayon-s">
                 "hljs-number"
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-cn">
                 0.
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-o">
                 /
                </span>
                <span class="crayon-v">
                 span
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-sy">
                 ,
                </span>
                <span class="crayon-h">
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-e">
                 span
                </span>
                <span class="crayon-t">
                 class
                </span>
                <span class="crayon-o">
                 =
                </span>
                <span class="crayon-s">
                 "hljs-number"
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-cn">
                 11.
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-o">
                 /
                </span>
                <span class="crayon-v">
                 span
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-sy">
                 ,
                </span>
                <span class="crayon-h">
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-e">
                 span
                </span>
                <span class="crayon-t">
                 class
                </span>
                <span class="crayon-o">
                 =
                </span>
                <span class="crayon-s">
                 "hljs-number"
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-cn">
                 8.
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-o">
                 /
                </span>
                <span class="crayon-v">
                 span
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-sy">
                 ,
                </span>
                <span class="crayon-h">
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-e">
                 span
                </span>
                <span class="crayon-t">
                 class
                </span>
                <span class="crayon-o">
                 =
                </span>
                <span class="crayon-s">
                 "hljs-number"
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-cn">
                 0.
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-o">
                 /
                </span>
                <span class="crayon-v">
                 span
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-sy">
                 ]
                </span>
                <span class="crayon-sy">
                 ,
                </span>
               </div>
               <div class="crayon-line" id="crayon-57685cbe83dcf655817431-5">
                <span class="crayon-h">
                </span>
                <span class="crayon-sy">
                 [
                </span>
                <span class="crayon-h">
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-e">
                 span
                </span>
                <span class="crayon-t">
                 class
                </span>
                <span class="crayon-o">
                 =
                </span>
                <span class="crayon-s">
                 "hljs-number"
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-cn">
                 0.
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-o">
                 /
                </span>
                <span class="crayon-v">
                 span
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-sy">
                 ,
                </span>
                <span class="crayon-h">
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-e">
                 span
                </span>
                <span class="crayon-t">
                 class
                </span>
                <span class="crayon-o">
                 =
                </span>
                <span class="crayon-s">
                 "hljs-number"
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-cn">
                 4.
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-o">
                 /
                </span>
                <span class="crayon-v">
                 span
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-sy">
                 ,
                </span>
                <span class="crayon-h">
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-e">
                 span
                </span>
                <span class="crayon-t">
                 class
                </span>
                <span class="crayon-o">
                 =
                </span>
                <span class="crayon-s">
                 "hljs-number"
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-cn">
                 12.
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-o">
                 /
                </span>
                <span class="crayon-v">
                 span
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-sy">
                 ,
                </span>
                <span class="crayon-h">
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-e">
                 span
                </span>
                <span class="crayon-t">
                 class
                </span>
                <span class="crayon-o">
                 =
                </span>
                <span class="crayon-s">
                 "hljs-number"
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-cn">
                 0.
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-o">
                 /
                </span>
                <span class="crayon-v">
                 span
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-sy">
                 ,
                </span>
                <span class="crayon-h">
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-e">
                 span
                </span>
                <span class="crayon-t">
                 class
                </span>
                <span class="crayon-o">
                 =
                </span>
                <span class="crayon-s">
                 "hljs-number"
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-cn">
                 0.
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-o">
                 /
                </span>
                <span class="crayon-v">
                 span
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-sy">
                 ,
                </span>
                <span class="crayon-h">
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-e">
                 span
                </span>
                <span class="crayon-t">
                 class
                </span>
                <span class="crayon-o">
                 =
                </span>
                <span class="crayon-s">
                 "hljs-number"
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-cn">
                 8.
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-o">
                 /
                </span>
                <span class="crayon-v">
                 span
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-sy">
                 ,
                </span>
                <span class="crayon-h">
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-e">
                 span
                </span>
                <span class="crayon-t">
                 class
                </span>
                <span class="crayon-o">
                 =
                </span>
                <span class="crayon-s">
                 "hljs-number"
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-cn">
                 8.
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-o">
                 /
                </span>
                <span class="crayon-v">
                 span
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-sy">
                 ,
                </span>
                <span class="crayon-h">
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-e">
                 span
                </span>
                <span class="crayon-t">
                 class
                </span>
                <span class="crayon-o">
                 =
                </span>
                <span class="crayon-s">
                 "hljs-number"
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-cn">
                 0.
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-o">
                 /
                </span>
                <span class="crayon-v">
                 span
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-sy">
                 ]
                </span>
                <span class="crayon-sy">
                 ,
                </span>
               </div>
               <div class="crayon-line crayon-striped-line" id="crayon-57685cbe83dcf655817431-6">
                <span class="crayon-h">
                </span>
                <span class="crayon-sy">
                 [
                </span>
                <span class="crayon-h">
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-e">
                 span
                </span>
                <span class="crayon-t">
                 class
                </span>
                <span class="crayon-o">
                 =
                </span>
                <span class="crayon-s">
                 "hljs-number"
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-cn">
                 0.
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-o">
                 /
                </span>
                <span class="crayon-v">
                 span
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-sy">
                 ,
                </span>
                <span class="crayon-h">
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-e">
                 span
                </span>
                <span class="crayon-t">
                 class
                </span>
                <span class="crayon-o">
                 =
                </span>
                <span class="crayon-s">
                 "hljs-number"
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-cn">
                 5.
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-o">
                 /
                </span>
                <span class="crayon-v">
                 span
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-sy">
                 ,
                </span>
                <span class="crayon-h">
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-e">
                 span
                </span>
                <span class="crayon-t">
                 class
                </span>
                <span class="crayon-o">
                 =
                </span>
                <span class="crayon-s">
                 "hljs-number"
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-cn">
                 8.
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-o">
                 /
                </span>
                <span class="crayon-v">
                 span
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-sy">
                 ,
                </span>
                <span class="crayon-h">
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-e">
                 span
                </span>
                <span class="crayon-t">
                 class
                </span>
                <span class="crayon-o">
                 =
                </span>
                <span class="crayon-s">
                 "hljs-number"
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-cn">
                 0.
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-o">
                 /
                </span>
                <span class="crayon-v">
                 span
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-sy">
                 ,
                </span>
                <span class="crayon-h">
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-e">
                 span
                </span>
                <span class="crayon-t">
                 class
                </span>
                <span class="crayon-o">
                 =
                </span>
                <span class="crayon-s">
                 "hljs-number"
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-cn">
                 0.
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-o">
                 /
                </span>
                <span class="crayon-v">
                 span
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-sy">
                 ,
                </span>
                <span class="crayon-h">
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-e">
                 span
                </span>
                <span class="crayon-t">
                 class
                </span>
                <span class="crayon-o">
                 =
                </span>
                <span class="crayon-s">
                 "hljs-number"
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-cn">
                 9.
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-o">
                 /
                </span>
                <span class="crayon-v">
                 span
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-sy">
                 ,
                </span>
                <span class="crayon-h">
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-e">
                 span
                </span>
                <span class="crayon-t">
                 class
                </span>
                <span class="crayon-o">
                 =
                </span>
                <span class="crayon-s">
                 "hljs-number"
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-cn">
                 8.
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-o">
                 /
                </span>
                <span class="crayon-v">
                 span
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-sy">
                 ,
                </span>
                <span class="crayon-h">
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-e">
                 span
                </span>
                <span class="crayon-t">
                 class
                </span>
                <span class="crayon-o">
                 =
                </span>
                <span class="crayon-s">
                 "hljs-number"
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-cn">
                 0.
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-o">
                 /
                </span>
                <span class="crayon-v">
                 span
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-sy">
                 ]
                </span>
                <span class="crayon-sy">
                 ,
                </span>
               </div>
               <div class="crayon-line" id="crayon-57685cbe83dcf655817431-7">
                <span class="crayon-h">
                </span>
                <span class="crayon-sy">
                 [
                </span>
                <span class="crayon-h">
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-e">
                 span
                </span>
                <span class="crayon-t">
                 class
                </span>
                <span class="crayon-o">
                 =
                </span>
                <span class="crayon-s">
                 "hljs-number"
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-cn">
                 0.
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-o">
                 /
                </span>
                <span class="crayon-v">
                 span
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-sy">
                 ,
                </span>
                <span class="crayon-h">
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-e">
                 span
                </span>
                <span class="crayon-t">
                 class
                </span>
                <span class="crayon-o">
                 =
                </span>
                <span class="crayon-s">
                 "hljs-number"
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-cn">
                 4.
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-o">
                 /
                </span>
                <span class="crayon-v">
                 span
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-sy">
                 ,
                </span>
                <span class="crayon-h">
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-e">
                 span
                </span>
                <span class="crayon-t">
                 class
                </span>
                <span class="crayon-o">
                 =
                </span>
                <span class="crayon-s">
                 "hljs-number"
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-cn">
                 11.
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-o">
                 /
                </span>
                <span class="crayon-v">
                 span
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-sy">
                 ,
                </span>
                <span class="crayon-h">
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-e">
                 span
                </span>
                <span class="crayon-t">
                 class
                </span>
                <span class="crayon-o">
                 =
                </span>
                <span class="crayon-s">
                 "hljs-number"
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-cn">
                 0.
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-o">
                 /
                </span>
                <span class="crayon-v">
                 span
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-sy">
                 ,
                </span>
                <span class="crayon-h">
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-e">
                 span
                </span>
                <span class="crayon-t">
                 class
                </span>
                <span class="crayon-o">
                 =
                </span>
                <span class="crayon-s">
                 "hljs-number"
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-cn">
                 1.
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-o">
                 /
                </span>
                <span class="crayon-v">
                 span
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-sy">
                 ,
                </span>
                <span class="crayon-h">
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-e">
                 span
                </span>
                <span class="crayon-t">
                 class
                </span>
                <span class="crayon-o">
                 =
                </span>
                <span class="crayon-s">
                 "hljs-number"
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-cn">
                 12.
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-o">
                 /
                </span>
                <span class="crayon-v">
                 span
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-sy">
                 ,
                </span>
                <span class="crayon-h">
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-e">
                 span
                </span>
                <span class="crayon-t">
                 class
                </span>
                <span class="crayon-o">
                 =
                </span>
                <span class="crayon-s">
                 "hljs-number"
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-cn">
                 7.
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-o">
                 /
                </span>
                <span class="crayon-v">
                 span
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-sy">
                 ,
                </span>
                <span class="crayon-h">
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-e">
                 span
                </span>
                <span class="crayon-t">
                 class
                </span>
                <span class="crayon-o">
                 =
                </span>
                <span class="crayon-s">
                 "hljs-number"
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-cn">
                 0.
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-o">
                 /
                </span>
                <span class="crayon-v">
                 span
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-sy">
                 ]
                </span>
                <span class="crayon-sy">
                 ,
                </span>
               </div>
               <div class="crayon-line crayon-striped-line" id="crayon-57685cbe83dcf655817431-8">
                <span class="crayon-h">
                </span>
                <span class="crayon-sy">
                 [
                </span>
                <span class="crayon-h">
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-e">
                 span
                </span>
                <span class="crayon-t">
                 class
                </span>
                <span class="crayon-o">
                 =
                </span>
                <span class="crayon-s">
                 "hljs-number"
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-cn">
                 0.
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-o">
                 /
                </span>
                <span class="crayon-v">
                 span
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-sy">
                 ,
                </span>
                <span class="crayon-h">
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-e">
                 span
                </span>
                <span class="crayon-t">
                 class
                </span>
                <span class="crayon-o">
                 =
                </span>
                <span class="crayon-s">
                 "hljs-number"
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-cn">
                 2.
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-o">
                 /
                </span>
                <span class="crayon-v">
                 span
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-sy">
                 ,
                </span>
                <span class="crayon-h">
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-e">
                 span
                </span>
                <span class="crayon-t">
                 class
                </span>
                <span class="crayon-o">
                 =
                </span>
                <span class="crayon-s">
                 "hljs-number"
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-cn">
                 14.
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-o">
                 /
                </span>
                <span class="crayon-v">
                 span
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-sy">
                 ,
                </span>
                <span class="crayon-h">
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-e">
                 span
                </span>
                <span class="crayon-t">
                 class
                </span>
                <span class="crayon-o">
                 =
                </span>
                <span class="crayon-s">
                 "hljs-number"
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-cn">
                 5.
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-o">
                 /
                </span>
                <span class="crayon-v">
                 span
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-sy">
                 ,
                </span>
                <span class="crayon-h">
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-e">
                 span
                </span>
                <span class="crayon-t">
                 class
                </span>
                <span class="crayon-o">
                 =
                </span>
                <span class="crayon-s">
                 "hljs-number"
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-cn">
                 10.
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-o">
                 /
                </span>
                <span class="crayon-v">
                 span
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-sy">
                 ,
                </span>
                <span class="crayon-h">
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-e">
                 span
                </span>
                <span class="crayon-t">
                 class
                </span>
                <span class="crayon-o">
                 =
                </span>
                <span class="crayon-s">
                 "hljs-number"
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-cn">
                 12.
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-o">
                 /
                </span>
                <span class="crayon-v">
                 span
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-sy">
                 ,
                </span>
                <span class="crayon-h">
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-e">
                 span
                </span>
                <span class="crayon-t">
                 class
                </span>
                <span class="crayon-o">
                 =
                </span>
                <span class="crayon-s">
                 "hljs-number"
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-cn">
                 0.
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-o">
                 /
                </span>
                <span class="crayon-v">
                 span
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-sy">
                 ,
                </span>
                <span class="crayon-h">
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-e">
                 span
                </span>
                <span class="crayon-t">
                 class
                </span>
                <span class="crayon-o">
                 =
                </span>
                <span class="crayon-s">
                 "hljs-number"
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-cn">
                 0.
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-o">
                 /
                </span>
                <span class="crayon-v">
                 span
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-sy">
                 ]
                </span>
                <span class="crayon-sy">
                 ,
                </span>
               </div>
               <div class="crayon-line" id="crayon-57685cbe83dcf655817431-9">
                <span class="crayon-h">
                </span>
                <span class="crayon-sy">
                 [
                </span>
                <span class="crayon-h">
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-e">
                 span
                </span>
                <span class="crayon-t">
                 class
                </span>
                <span class="crayon-o">
                 =
                </span>
                <span class="crayon-s">
                 "hljs-number"
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-cn">
                 0.
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-o">
                 /
                </span>
                <span class="crayon-v">
                 span
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-sy">
                 ,
                </span>
                <span class="crayon-h">
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-e">
                 span
                </span>
                <span class="crayon-t">
                 class
                </span>
                <span class="crayon-o">
                 =
                </span>
                <span class="crayon-s">
                 "hljs-number"
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-cn">
                 0.
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-o">
                 /
                </span>
                <span class="crayon-v">
                 span
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-sy">
                 ,
                </span>
                <span class="crayon-h">
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-e">
                 span
                </span>
                <span class="crayon-t">
                 class
                </span>
                <span class="crayon-o">
                 =
                </span>
                <span class="crayon-s">
                 "hljs-number"
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-cn">
                 6.
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-o">
                 /
                </span>
                <span class="crayon-v">
                 span
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-sy">
                 ,
                </span>
                <span class="crayon-h">
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-e">
                 span
                </span>
                <span class="crayon-t">
                 class
                </span>
                <span class="crayon-o">
                 =
                </span>
                <span class="crayon-s">
                 "hljs-number"
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-cn">
                 13.
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-o">
                 /
                </span>
                <span class="crayon-v">
                 span
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-sy">
                 ,
                </span>
                <span class="crayon-h">
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-e">
                 span
                </span>
                <span class="crayon-t">
                 class
                </span>
                <span class="crayon-o">
                 =
                </span>
                <span class="crayon-s">
                 "hljs-number"
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-cn">
                 10.
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-o">
                 /
                </span>
                <span class="crayon-v">
                 span
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-sy">
                 ,
                </span>
                <span class="crayon-h">
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-e">
                 span
                </span>
                <span class="crayon-t">
                 class
                </span>
                <span class="crayon-o">
                 =
                </span>
                <span class="crayon-s">
                 "hljs-number"
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-cn">
                 0.
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-o">
                 /
                </span>
                <span class="crayon-v">
                 span
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-sy">
                 ,
                </span>
                <span class="crayon-h">
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-e">
                 span
                </span>
                <span class="crayon-t">
                 class
                </span>
                <span class="crayon-o">
                 =
                </span>
                <span class="crayon-s">
                 "hljs-number"
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-cn">
                 0.
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-o">
                 /
                </span>
                <span class="crayon-v">
                 span
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-sy">
                 ,
                </span>
                <span class="crayon-h">
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-e">
                 span
                </span>
                <span class="crayon-t">
                 class
                </span>
                <span class="crayon-o">
                 =
                </span>
                <span class="crayon-s">
                 "hljs-number"
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-cn">
                 0.
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-o">
                 /
                </span>
                <span class="crayon-v">
                 span
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-sy">
                 ]
                </span>
                <span class="crayon-sy">
                 ]
                </span>
                <span class="crayon-sy">
                 )
                </span>
               </div>
              </div>
             </td>
            </tr>
           </tbody>
          </table>
         </div>
        </div>
        <!-- [Format Time: 0.1669 seconds] -->
        <p>
        </p>
       </blockquote>
       <h2>
        三、学习和预测
       </h2>
       <p>
        对于数字数据集（digits dataset），任务是预测一张图片中的数字是什么。数字数据集提供了0-9每一个数字的可能样例，可以用它们来对位置的数字图片进行拟合分类。
       </p>
       <p>
        在scikit-learn中，用以分类的拟合（评估）函数是一个Python对象，具体有fit(X,Y)和predic(T)两种成员方法。
       </p>
       <p>
        其中一个拟合（评估）样例是sklearn.svmSVC类，它实现了支持向量分类（SVC）。一个拟合（评估）函数的构造函数需要模型的参数，但是时间问题，我们将会把这个拟合（评估）函数作为一个黑箱：
       </p>
       <blockquote>
        <p>
        </p>
        <!-- Crayon Syntax Highlighter v_2.7.2_beta -->
        <div class="crayon-syntax crayon-theme-classic crayon-font-monaco crayon-os-pc print-yes notranslate" data-settings=" minimize scroll-mouseover" id="crayon-57685cbe83dd9721370313" style=" margin-top: 12px; margin-bottom: 12px; font-size: 12px !important; line-height: 15px !important;">
         <div class="crayon-toolbar" data-settings=" mouseover overlay hide delay" style="font-size: 12px !important;height: 18px !important; line-height: 18px !important;">
          <span class="crayon-title">
          </span>
          <div class="crayon-tools" style="font-size: 12px !important;height: 18px !important; line-height: 18px !important;">
           <div class="crayon-button crayon-nums-button" title="切换是否显示行编号">
            <div class="crayon-button-icon">
            </div>
           </div>
           <div class="crayon-button crayon-plain-button" title="纯文本显示代码">
            <div class="crayon-button-icon">
            </div>
           </div>
           <div class="crayon-button crayon-wrap-button" title="切换自动换行">
            <div class="crayon-button-icon">
            </div>
           </div>
           <div class="crayon-button crayon-expand-button" title="点击展开代码">
            <div class="crayon-button-icon">
            </div>
           </div>
           <div class="crayon-button crayon-copy-button" title="复制代码">
            <div class="crayon-button-icon">
            </div>
           </div>
           <div class="crayon-button crayon-popup-button" title="在新窗口中显示代码">
            <div class="crayon-button-icon">
            </div>
           </div>
          </div>
         </div>
         <div class="crayon-info" style="min-height: 16.8px !important; line-height: 16.8px !important;">
         </div>
         <div class="crayon-plain-wrap">
          <textarea class="crayon-plain print-no" data-settings="dblclick" readonly="" style="-moz-tab-size:4; -o-tab-size:4; -webkit-tab-size:4; tab-size:4; font-size: 12px !important; line-height: 15px !important;" wrap="soft">
           &amp;gt;&amp;gt;&amp;gt;&lt;span class="hljs-keyword"&gt;from&lt;/span&gt; sklearn &lt;span class="hljs-keyword"&gt;import&lt;/span&gt; svm
&amp;gt;&amp;gt;&amp;gt;clf = svm.SVC(gamma=&lt;span class="hljs-number"&gt;0.001&lt;/span&gt;, C=&lt;span class="hljs-number"&gt;100.&lt;/span&gt;)
          </textarea>
         </div>
         <div class="crayon-main" style="">
          <table class="crayon-table">
           <tbody>
            <tr class="crayon-row">
             <td class="crayon-nums " data-settings="show">
              <div class="crayon-nums-content" style="font-size: 12px !important; line-height: 15px !important;">
               <div class="crayon-num" data-line="crayon-57685cbe83dd9721370313-1">
                1
               </div>
               <div class="crayon-num crayon-striped-num" data-line="crayon-57685cbe83dd9721370313-2">
                2
               </div>
              </div>
             </td>
             <td class="crayon-code">
              <div class="crayon-pre" style="font-size: 12px !important; line-height: 15px !important; -moz-tab-size:4; -o-tab-size:4; -webkit-tab-size:4; tab-size:4;">
               <div class="crayon-line" id="crayon-57685cbe83dd9721370313-1">
                <span class="crayon-o">
                 &amp;
                </span>
                <span class="crayon-v">
                 gt
                </span>
                <span class="crayon-sy">
                 ;
                </span>
                <span class="crayon-o">
                 &amp;
                </span>
                <span class="crayon-v">
                 gt
                </span>
                <span class="crayon-sy">
                 ;
                </span>
                <span class="crayon-o">
                 &amp;
                </span>
                <span class="crayon-v">
                 gt
                </span>
                <span class="crayon-sy">
                 ;
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-e">
                 span
                </span>
                <span class="crayon-t">
                 class
                </span>
                <span class="crayon-o">
                 =
                </span>
                <span class="crayon-s">
                 "hljs-keyword"
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-v">
                 from
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-o">
                 /
                </span>
                <span class="crayon-v">
                 span
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-h">
                </span>
                <span class="crayon-v">
                 sklearn
                </span>
                <span class="crayon-h">
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-e">
                 span
                </span>
                <span class="crayon-t">
                 class
                </span>
                <span class="crayon-o">
                 =
                </span>
                <span class="crayon-s">
                 "hljs-keyword"
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-v">
                 import
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-o">
                 /
                </span>
                <span class="crayon-v">
                 span
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-h">
                </span>
                <span class="crayon-v">
                 svm
                </span>
               </div>
               <div class="crayon-line crayon-striped-line" id="crayon-57685cbe83dd9721370313-2">
                <span class="crayon-o">
                 &amp;
                </span>
                <span class="crayon-v">
                 gt
                </span>
                <span class="crayon-sy">
                 ;
                </span>
                <span class="crayon-o">
                 &amp;
                </span>
                <span class="crayon-v">
                 gt
                </span>
                <span class="crayon-sy">
                 ;
                </span>
                <span class="crayon-o">
                 &amp;
                </span>
                <span class="crayon-v">
                 gt
                </span>
                <span class="crayon-sy">
                 ;
                </span>
                <span class="crayon-v">
                 clf
                </span>
                <span class="crayon-h">
                </span>
                <span class="crayon-o">
                 =
                </span>
                <span class="crayon-h">
                </span>
                <span class="crayon-v">
                 svm
                </span>
                <span class="crayon-sy">
                 .
                </span>
                <span class="crayon-e">
                 SVC
                </span>
                <span class="crayon-sy">
                 (
                </span>
                <span class="crayon-v">
                 gamma
                </span>
                <span class="crayon-o">
                 =
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-e">
                 span
                </span>
                <span class="crayon-t">
                 class
                </span>
                <span class="crayon-o">
                 =
                </span>
                <span class="crayon-s">
                 "hljs-number"
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-cn">
                 0.001
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-o">
                 /
                </span>
                <span class="crayon-v">
                 span
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-sy">
                 ,
                </span>
                <span class="crayon-h">
                </span>
                <span class="crayon-v">
                 C
                </span>
                <span class="crayon-o">
                 =
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-e">
                 span
                </span>
                <span class="crayon-t">
                 class
                </span>
                <span class="crayon-o">
                 =
                </span>
                <span class="crayon-s">
                 "hljs-number"
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-cn">
                 100.
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-o">
                 /
                </span>
                <span class="crayon-v">
                 span
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-sy">
                 )
                </span>
               </div>
              </div>
             </td>
            </tr>
           </tbody>
          </table>
         </div>
        </div>
        <!-- [Format Time: 0.0232 seconds] -->
        <p>
         <code>
          选择模型参数
         </code>
         <br/>
         我们调用拟合（估测）实例clf作为我们的分类器。它现在必须要拟合模型，也就是说，他必须要学习模型。这可以通过把我们的训练集传递给fit方法。作为训练集，我们使用其中除最后一组的所有图像。我们可以通过Python的分片语法[:-1]来选取训练集，这个操作将产生一个新数组，这个数组包含digits.dataz中除最后一组数据的所有实例。
        </p>
        <!-- Crayon Syntax Highlighter v_2.7.2_beta -->
        <div class="crayon-syntax crayon-theme-classic crayon-font-monaco crayon-os-pc print-yes notranslate" data-settings=" minimize scroll-mouseover" id="crayon-57685cbe83de0712839265" style=" margin-top: 12px; margin-bottom: 12px; font-size: 12px !important; line-height: 15px !important;">
         <div class="crayon-toolbar" data-settings=" mouseover overlay hide delay" style="font-size: 12px !important;height: 18px !important; line-height: 18px !important;">
          <span class="crayon-title">
          </span>
          <div class="crayon-tools" style="font-size: 12px !important;height: 18px !important; line-height: 18px !important;">
           <div class="crayon-button crayon-nums-button" title="切换是否显示行编号">
            <div class="crayon-button-icon">
            </div>
           </div>
           <div class="crayon-button crayon-plain-button" title="纯文本显示代码">
            <div class="crayon-button-icon">
            </div>
           </div>
           <div class="crayon-button crayon-wrap-button" title="切换自动换行">
            <div class="crayon-button-icon">
            </div>
           </div>
           <div class="crayon-button crayon-expand-button" title="点击展开代码">
            <div class="crayon-button-icon">
            </div>
           </div>
           <div class="crayon-button crayon-copy-button" title="复制代码">
            <div class="crayon-button-icon">
            </div>
           </div>
           <div class="crayon-button crayon-popup-button" title="在新窗口中显示代码">
            <div class="crayon-button-icon">
            </div>
           </div>
          </div>
         </div>
         <div class="crayon-info" style="min-height: 16.8px !important; line-height: 16.8px !important;">
         </div>
         <div class="crayon-plain-wrap">
          <textarea class="crayon-plain print-no" data-settings="dblclick" readonly="" style="-moz-tab-size:4; -o-tab-size:4; -webkit-tab-size:4; tab-size:4; font-size: 12px !important; line-height: 15px !important;" wrap="soft">
           &amp;gt;&amp;gt;&amp;gt;clf.fit(digits.data[:-&lt;span class="hljs-number"&gt;1&lt;/span&gt;], digits.target[:-&lt;span class="hljs-number"&gt;1&lt;/span&gt;])  
SVC(C=&lt;span class="hljs-number"&gt;100.0&lt;/span&gt;, cache_size=&lt;span class="hljs-number"&gt;200&lt;/span&gt;, class_weight=&lt;span class="hljs-keyword"&gt;None&lt;/span&gt;, coef0=&lt;span class="hljs-number"&gt;0.0&lt;/span&gt;, degree=&lt;span class="hljs-number"&gt;3&lt;/span&gt;,
gamma=&lt;span class="hljs-number"&gt;0.001&lt;/span&gt;, kernel=&lt;span class="hljs-string"&gt;'rbf'&lt;/span&gt;, max_iter=-&lt;span class="hljs-number"&gt;1&lt;/span&gt;, probability=&lt;span class="hljs-keyword"&gt;False&lt;/span&gt;,
random_state=&lt;span class="hljs-keyword"&gt;None&lt;/span&gt;, shrinking=&lt;span class="hljs-keyword"&gt;True&lt;/span&gt;, tol=&lt;span class="hljs-number"&gt;0.001&lt;/span&gt;, verbose=&lt;span class="hljs-keyword"&gt;False&lt;/span&gt;)
          </textarea>
         </div>
         <div class="crayon-main" style="">
          <table class="crayon-table">
           <tbody>
            <tr class="crayon-row">
             <td class="crayon-nums " data-settings="show">
              <div class="crayon-nums-content" style="font-size: 12px !important; line-height: 15px !important;">
               <div class="crayon-num" data-line="crayon-57685cbe83de0712839265-1">
                1
               </div>
               <div class="crayon-num crayon-striped-num" data-line="crayon-57685cbe83de0712839265-2">
                2
               </div>
               <div class="crayon-num" data-line="crayon-57685cbe83de0712839265-3">
                3
               </div>
               <div class="crayon-num crayon-striped-num" data-line="crayon-57685cbe83de0712839265-4">
                4
               </div>
              </div>
             </td>
             <td class="crayon-code">
              <div class="crayon-pre" style="font-size: 12px !important; line-height: 15px !important; -moz-tab-size:4; -o-tab-size:4; -webkit-tab-size:4; tab-size:4;">
               <div class="crayon-line" id="crayon-57685cbe83de0712839265-1">
                <span class="crayon-o">
                 &amp;
                </span>
                <span class="crayon-v">
                 gt
                </span>
                <span class="crayon-sy">
                 ;
                </span>
                <span class="crayon-o">
                 &amp;
                </span>
                <span class="crayon-v">
                 gt
                </span>
                <span class="crayon-sy">
                 ;
                </span>
                <span class="crayon-o">
                 &amp;
                </span>
                <span class="crayon-v">
                 gt
                </span>
                <span class="crayon-sy">
                 ;
                </span>
                <span class="crayon-v">
                 clf
                </span>
                <span class="crayon-sy">
                 .
                </span>
                <span class="crayon-e">
                 fit
                </span>
                <span class="crayon-sy">
                 (
                </span>
                <span class="crayon-v">
                 digits
                </span>
                <span class="crayon-sy">
                 .
                </span>
                <span class="crayon-v">
                 data
                </span>
                <span class="crayon-sy">
                 [
                </span>
                <span class="crayon-o">
                 :
                </span>
                <span class="crayon-o">
                 -
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-e">
                 span
                </span>
                <span class="crayon-t">
                 class
                </span>
                <span class="crayon-o">
                 =
                </span>
                <span class="crayon-s">
                 "hljs-number"
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-cn">
                 1
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-o">
                 /
                </span>
                <span class="crayon-v">
                 span
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-sy">
                 ]
                </span>
                <span class="crayon-sy">
                 ,
                </span>
                <span class="crayon-h">
                </span>
                <span class="crayon-v">
                 digits
                </span>
                <span class="crayon-sy">
                 .
                </span>
                <span class="crayon-v">
                 target
                </span>
                <span class="crayon-sy">
                 [
                </span>
                <span class="crayon-o">
                 :
                </span>
                <span class="crayon-o">
                 -
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-e">
                 span
                </span>
                <span class="crayon-t">
                 class
                </span>
                <span class="crayon-o">
                 =
                </span>
                <span class="crayon-s">
                 "hljs-number"
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-cn">
                 1
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-o">
                 /
                </span>
                <span class="crayon-v">
                 span
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-sy">
                 ]
                </span>
                <span class="crayon-sy">
                 )
                </span>
                <span class="crayon-h">
                </span>
               </div>
               <div class="crayon-line crayon-striped-line" id="crayon-57685cbe83de0712839265-2">
                <span class="crayon-e">
                 SVC
                </span>
                <span class="crayon-sy">
                 (
                </span>
                <span class="crayon-v">
                 C
                </span>
                <span class="crayon-o">
                 =
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-e">
                 span
                </span>
                <span class="crayon-t">
                 class
                </span>
                <span class="crayon-o">
                 =
                </span>
                <span class="crayon-s">
                 "hljs-number"
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-cn">
                 100.0
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-o">
                 /
                </span>
                <span class="crayon-v">
                 span
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-sy">
                 ,
                </span>
                <span class="crayon-h">
                </span>
                <span class="crayon-v">
                 cache_size
                </span>
                <span class="crayon-o">
                 =
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-e">
                 span
                </span>
                <span class="crayon-t">
                 class
                </span>
                <span class="crayon-o">
                 =
                </span>
                <span class="crayon-s">
                 "hljs-number"
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-cn">
                 200
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-o">
                 /
                </span>
                <span class="crayon-v">
                 span
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-sy">
                 ,
                </span>
                <span class="crayon-h">
                </span>
                <span class="crayon-v">
                 class_weight
                </span>
                <span class="crayon-o">
                 =
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-e">
                 span
                </span>
                <span class="crayon-t">
                 class
                </span>
                <span class="crayon-o">
                 =
                </span>
                <span class="crayon-s">
                 "hljs-keyword"
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-v">
                 None
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-o">
                 /
                </span>
                <span class="crayon-v">
                 span
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-sy">
                 ,
                </span>
                <span class="crayon-h">
                </span>
                <span class="crayon-v">
                 coef0
                </span>
                <span class="crayon-o">
                 =
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-e">
                 span
                </span>
                <span class="crayon-t">
                 class
                </span>
                <span class="crayon-o">
                 =
                </span>
                <span class="crayon-s">
                 "hljs-number"
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-cn">
                 0.0
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-o">
                 /
                </span>
                <span class="crayon-v">
                 span
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-sy">
                 ,
                </span>
                <span class="crayon-h">
                </span>
                <span class="crayon-v">
                 degree
                </span>
                <span class="crayon-o">
                 =
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-e">
                 span
                </span>
                <span class="crayon-t">
                 class
                </span>
                <span class="crayon-o">
                 =
                </span>
                <span class="crayon-s">
                 "hljs-number"
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-cn">
                 3
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-o">
                 /
                </span>
                <span class="crayon-v">
                 span
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-sy">
                 ,
                </span>
               </div>
               <div class="crayon-line" id="crayon-57685cbe83de0712839265-3">
                <span class="crayon-v">
                 gamma
                </span>
                <span class="crayon-o">
                 =
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-e">
                 span
                </span>
                <span class="crayon-t">
                 class
                </span>
                <span class="crayon-o">
                 =
                </span>
                <span class="crayon-s">
                 "hljs-number"
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-cn">
                 0.001
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-o">
                 /
                </span>
                <span class="crayon-v">
                 span
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-sy">
                 ,
                </span>
                <span class="crayon-h">
                </span>
                <span class="crayon-v">
                 kernel
                </span>
                <span class="crayon-o">
                 =
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-e">
                 span
                </span>
                <span class="crayon-t">
                 class
                </span>
                <span class="crayon-o">
                 =
                </span>
                <span class="crayon-s">
                 "hljs-string"
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-s">
                 'rbf'
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-o">
                 /
                </span>
                <span class="crayon-v">
                 span
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-sy">
                 ,
                </span>
                <span class="crayon-h">
                </span>
                <span class="crayon-v">
                 max_iter
                </span>
                <span class="crayon-o">
                 =
                </span>
                <span class="crayon-o">
                 -
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-e">
                 span
                </span>
                <span class="crayon-t">
                 class
                </span>
                <span class="crayon-o">
                 =
                </span>
                <span class="crayon-s">
                 "hljs-number"
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-cn">
                 1
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-o">
                 /
                </span>
                <span class="crayon-v">
                 span
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-sy">
                 ,
                </span>
                <span class="crayon-h">
                </span>
                <span class="crayon-v">
                 probability
                </span>
                <span class="crayon-o">
                 =
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-e">
                 span
                </span>
                <span class="crayon-t">
                 class
                </span>
                <span class="crayon-o">
                 =
                </span>
                <span class="crayon-s">
                 "hljs-keyword"
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-t">
                 False
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-o">
                 /
                </span>
                <span class="crayon-v">
                 span
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-sy">
                 ,
                </span>
               </div>
               <div class="crayon-line crayon-striped-line" id="crayon-57685cbe83de0712839265-4">
                <span class="crayon-v">
                 random_state
                </span>
                <span class="crayon-o">
                 =
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-e">
                 span
                </span>
                <span class="crayon-t">
                 class
                </span>
                <span class="crayon-o">
                 =
                </span>
                <span class="crayon-s">
                 "hljs-keyword"
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-v">
                 None
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-o">
                 /
                </span>
                <span class="crayon-v">
                 span
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-sy">
                 ,
                </span>
                <span class="crayon-h">
                </span>
                <span class="crayon-v">
                 shrinking
                </span>
                <span class="crayon-o">
                 =
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-e">
                 span
                </span>
                <span class="crayon-t">
                 class
                </span>
                <span class="crayon-o">
                 =
                </span>
                <span class="crayon-s">
                 "hljs-keyword"
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-t">
                 True
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-o">
                 /
                </span>
                <span class="crayon-v">
                 span
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-sy">
                 ,
                </span>
                <span class="crayon-h">
                </span>
                <span class="crayon-v">
                 tol
                </span>
                <span class="crayon-o">
                 =
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-e">
                 span
                </span>
                <span class="crayon-t">
                 class
                </span>
                <span class="crayon-o">
                 =
                </span>
                <span class="crayon-s">
                 "hljs-number"
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-cn">
                 0.001
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-o">
                 /
                </span>
                <span class="crayon-v">
                 span
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-sy">
                 ,
                </span>
                <span class="crayon-h">
                </span>
                <span class="crayon-v">
                 verbose
                </span>
                <span class="crayon-o">
                 =
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-e">
                 span
                </span>
                <span class="crayon-t">
                 class
                </span>
                <span class="crayon-o">
                 =
                </span>
                <span class="crayon-s">
                 "hljs-keyword"
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-t">
                 False
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-o">
                 /
                </span>
                <span class="crayon-v">
                 span
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-sy">
                 )
                </span>
               </div>
              </div>
             </td>
            </tr>
           </tbody>
          </table>
         </div>
        </div>
        <!-- [Format Time: 0.0342 seconds] -->
        <p>
        </p>
       </blockquote>
       <p>
        现在你可以预测新的数值了。我们可以让这个训练器告诉我们digits数据集我们没有作为训练数据使用的最后一张图像是什么数字。
       </p>
       <blockquote>
        <p>
        </p>
        <!-- Crayon Syntax Highlighter v_2.7.2_beta -->
        <div class="crayon-syntax crayon-theme-classic crayon-font-monaco crayon-os-pc print-yes notranslate" data-settings=" minimize scroll-mouseover" id="crayon-57685cbe83de7658914775" style=" margin-top: 12px; margin-bottom: 12px; font-size: 12px !important; line-height: 15px !important;">
         <div class="crayon-toolbar" data-settings=" mouseover overlay hide delay" style="font-size: 12px !important;height: 18px !important; line-height: 18px !important;">
          <span class="crayon-title">
          </span>
          <div class="crayon-tools" style="font-size: 12px !important;height: 18px !important; line-height: 18px !important;">
           <div class="crayon-button crayon-nums-button" title="切换是否显示行编号">
            <div class="crayon-button-icon">
            </div>
           </div>
           <div class="crayon-button crayon-plain-button" title="纯文本显示代码">
            <div class="crayon-button-icon">
            </div>
           </div>
           <div class="crayon-button crayon-wrap-button" title="切换自动换行">
            <div class="crayon-button-icon">
            </div>
           </div>
           <div class="crayon-button crayon-expand-button" title="点击展开代码">
            <div class="crayon-button-icon">
            </div>
           </div>
           <div class="crayon-button crayon-copy-button" title="复制代码">
            <div class="crayon-button-icon">
            </div>
           </div>
           <div class="crayon-button crayon-popup-button" title="在新窗口中显示代码">
            <div class="crayon-button-icon">
            </div>
           </div>
          </div>
         </div>
         <div class="crayon-info" style="min-height: 16.8px !important; line-height: 16.8px !important;">
         </div>
         <div class="crayon-plain-wrap">
          <textarea class="crayon-plain print-no" data-settings="dblclick" readonly="" style="-moz-tab-size:4; -o-tab-size:4; -webkit-tab-size:4; tab-size:4; font-size: 12px !important; line-height: 15px !important;" wrap="soft">
           &amp;gt;&amp;gt;&amp;gt;clf.predict(digits.data[-&lt;span class="hljs-number"&gt;1&lt;/span&gt;])
array([&lt;span class="hljs-number"&gt;8&lt;/span&gt;])
          </textarea>
         </div>
         <div class="crayon-main" style="">
          <table class="crayon-table">
           <tbody>
            <tr class="crayon-row">
             <td class="crayon-nums " data-settings="show">
              <div class="crayon-nums-content" style="font-size: 12px !important; line-height: 15px !important;">
               <div class="crayon-num" data-line="crayon-57685cbe83de7658914775-1">
                1
               </div>
               <div class="crayon-num crayon-striped-num" data-line="crayon-57685cbe83de7658914775-2">
                2
               </div>
              </div>
             </td>
             <td class="crayon-code">
              <div class="crayon-pre" style="font-size: 12px !important; line-height: 15px !important; -moz-tab-size:4; -o-tab-size:4; -webkit-tab-size:4; tab-size:4;">
               <div class="crayon-line" id="crayon-57685cbe83de7658914775-1">
                <span class="crayon-o">
                 &amp;
                </span>
                <span class="crayon-v">
                 gt
                </span>
                <span class="crayon-sy">
                 ;
                </span>
                <span class="crayon-o">
                 &amp;
                </span>
                <span class="crayon-v">
                 gt
                </span>
                <span class="crayon-sy">
                 ;
                </span>
                <span class="crayon-o">
                 &amp;
                </span>
                <span class="crayon-v">
                 gt
                </span>
                <span class="crayon-sy">
                 ;
                </span>
                <span class="crayon-v">
                 clf
                </span>
                <span class="crayon-sy">
                 .
                </span>
                <span class="crayon-e">
                 predict
                </span>
                <span class="crayon-sy">
                 (
                </span>
                <span class="crayon-v">
                 digits
                </span>
                <span class="crayon-sy">
                 .
                </span>
                <span class="crayon-v">
                 data
                </span>
                <span class="crayon-sy">
                 [
                </span>
                <span class="crayon-o">
                 -
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-e">
                 span
                </span>
                <span class="crayon-t">
                 class
                </span>
                <span class="crayon-o">
                 =
                </span>
                <span class="crayon-s">
                 "hljs-number"
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-cn">
                 1
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-o">
                 /
                </span>
                <span class="crayon-v">
                 span
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-sy">
                 ]
                </span>
                <span class="crayon-sy">
                 )
                </span>
               </div>
               <div class="crayon-line crayon-striped-line" id="crayon-57685cbe83de7658914775-2">
                <span class="crayon-t">
                 array
                </span>
                <span class="crayon-sy">
                 (
                </span>
                <span class="crayon-sy">
                 [
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-e">
                 span
                </span>
                <span class="crayon-t">
                 class
                </span>
                <span class="crayon-o">
                 =
                </span>
                <span class="crayon-s">
                 "hljs-number"
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-cn">
                 8
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-o">
                 /
                </span>
                <span class="crayon-v">
                 span
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-sy">
                 ]
                </span>
                <span class="crayon-sy">
                 )
                </span>
               </div>
              </div>
             </td>
            </tr>
           </tbody>
          </table>
         </div>
        </div>
        <!-- [Format Time: 0.0131 seconds] -->
        <p>
        </p>
       </blockquote>
       <p>
        相应的图片如下图：
        <br/>
        <img src="http://dataunion.org/wp-content/uploads/2015/06/plot_digits_last_image_0011.png"/>
       </p>
       <p>
        正如你所看到的，这是一个很有挑战的任务：这张图片的分辨率很低。你同意分类器给出的答案吗？
       </p>
       <p>
        这个分类问题的完整示例在这里识别手写数字，你可以运行并使用它。[译：看本文附录]
       </p>
       <h2>
        四、模型持久化
       </h2>
       <p>
        可以使用Python的自带模块——pickle来保存scikit中的模型：
       </p>
       <blockquote>
        <p>
        </p>
        <!-- Crayon Syntax Highlighter v_2.7.2_beta -->
        <div class="crayon-syntax crayon-theme-classic crayon-font-monaco crayon-os-pc print-yes notranslate" data-settings=" minimize scroll-mouseover" id="crayon-57685cbe83dee959149923" style=" margin-top: 12px; margin-bottom: 12px; font-size: 12px !important; line-height: 15px !important;">
         <div class="crayon-toolbar" data-settings=" mouseover overlay hide delay" style="font-size: 12px !important;height: 18px !important; line-height: 18px !important;">
          <span class="crayon-title">
          </span>
          <div class="crayon-tools" style="font-size: 12px !important;height: 18px !important; line-height: 18px !important;">
           <div class="crayon-button crayon-nums-button" title="切换是否显示行编号">
            <div class="crayon-button-icon">
            </div>
           </div>
           <div class="crayon-button crayon-plain-button" title="纯文本显示代码">
            <div class="crayon-button-icon">
            </div>
           </div>
           <div class="crayon-button crayon-wrap-button" title="切换自动换行">
            <div class="crayon-button-icon">
            </div>
           </div>
           <div class="crayon-button crayon-expand-button" title="点击展开代码">
            <div class="crayon-button-icon">
            </div>
           </div>
           <div class="crayon-button crayon-copy-button" title="复制代码">
            <div class="crayon-button-icon">
            </div>
           </div>
           <div class="crayon-button crayon-popup-button" title="在新窗口中显示代码">
            <div class="crayon-button-icon">
            </div>
           </div>
          </div>
         </div>
         <div class="crayon-info" style="min-height: 16.8px !important; line-height: 16.8px !important;">
         </div>
         <div class="crayon-plain-wrap">
          <textarea class="crayon-plain print-no" data-settings="dblclick" readonly="" style="-moz-tab-size:4; -o-tab-size:4; -webkit-tab-size:4; tab-size:4; font-size: 12px !important; line-height: 15px !important;" wrap="soft">
           &amp;gt;&amp;gt;&amp;gt;&lt;span class="hljs-keyword"&gt;from&lt;/span&gt; sklearn &lt;span class="hljs-keyword"&gt;import&lt;/span&gt; svm
&amp;gt;&amp;gt;&amp;gt;&lt;span class="hljs-keyword"&gt;from&lt;/span&gt; sklearn &lt;span class="hljs-keyword"&gt;import&lt;/span&gt; datasets
&amp;gt;&amp;gt;&amp;gt;clf = svm.SVC()
&amp;gt;&amp;gt;&amp;gt;iris = datasets.load_iris()
&amp;gt;&amp;gt;&amp;gt;X, y = iris.data, iris.target
&amp;gt;&amp;gt;&amp;gt;clf.fit(X, y)  
SVC(C=&lt;span class="hljs-number"&gt;1.0&lt;/span&gt;, cache_size=&lt;span class="hljs-number"&gt;200&lt;/span&gt;, class_weight=&lt;span class="hljs-keyword"&gt;None&lt;/span&gt;, coef0=&lt;span class="hljs-number"&gt;0.0&lt;/span&gt;, degree=&lt;span class="hljs-number"&gt;3&lt;/span&gt;, gamma=&lt;span class="hljs-number"&gt;0.0&lt;/span&gt;,
  kernel=&lt;span class="hljs-string"&gt;'rbf'&lt;/span&gt;, max_iter=-&lt;span class="hljs-number"&gt;1&lt;/span&gt;, probability=&lt;span class="hljs-keyword"&gt;False&lt;/span&gt;, random_state=&lt;span class="hljs-keyword"&gt;None&lt;/span&gt;,
  shrinking=&lt;span class="hljs-keyword"&gt;True&lt;/span&gt;, tol=&lt;span class="hljs-number"&gt;0.001&lt;/span&gt;, verbose=&lt;span class="hljs-keyword"&gt;False&lt;/span&gt;)

&amp;gt;&amp;gt;&amp;gt;&lt;span class="hljs-keyword"&gt;import&lt;/span&gt; pickle
&amp;gt;&amp;gt;&amp;gt;s = pickle.dumps(clf)
&amp;gt;&amp;gt;&amp;gt;clf2 = pickle.loads(s)
&amp;gt;&amp;gt;&amp;gt;clf2.predict(X[&lt;span class="hljs-number"&gt;0&lt;/span&gt;])
array([&lt;span class="hljs-number"&gt;0&lt;/span&gt;])
&amp;gt;&amp;gt;&amp;gt;y[&lt;span class="hljs-number"&gt;0&lt;/span&gt;]
&lt;span class="hljs-number"&gt;0&lt;/span&gt;
          </textarea>
         </div>
         <div class="crayon-main" style="">
          <table class="crayon-table">
           <tbody>
            <tr class="crayon-row">
             <td class="crayon-nums " data-settings="show">
              <div class="crayon-nums-content" style="font-size: 12px !important; line-height: 15px !important;">
               <div class="crayon-num" data-line="crayon-57685cbe83dee959149923-1">
                1
               </div>
               <div class="crayon-num crayon-striped-num" data-line="crayon-57685cbe83dee959149923-2">
                2
               </div>
               <div class="crayon-num" data-line="crayon-57685cbe83dee959149923-3">
                3
               </div>
               <div class="crayon-num crayon-striped-num" data-line="crayon-57685cbe83dee959149923-4">
                4
               </div>
               <div class="crayon-num" data-line="crayon-57685cbe83dee959149923-5">
                5
               </div>
               <div class="crayon-num crayon-striped-num" data-line="crayon-57685cbe83dee959149923-6">
                6
               </div>
               <div class="crayon-num" data-line="crayon-57685cbe83dee959149923-7">
                7
               </div>
               <div class="crayon-num crayon-striped-num" data-line="crayon-57685cbe83dee959149923-8">
                8
               </div>
               <div class="crayon-num" data-line="crayon-57685cbe83dee959149923-9">
                9
               </div>
               <div class="crayon-num crayon-striped-num" data-line="crayon-57685cbe83dee959149923-10">
                10
               </div>
               <div class="crayon-num" data-line="crayon-57685cbe83dee959149923-11">
                11
               </div>
               <div class="crayon-num crayon-striped-num" data-line="crayon-57685cbe83dee959149923-12">
                12
               </div>
               <div class="crayon-num" data-line="crayon-57685cbe83dee959149923-13">
                13
               </div>
               <div class="crayon-num crayon-striped-num" data-line="crayon-57685cbe83dee959149923-14">
                14
               </div>
               <div class="crayon-num" data-line="crayon-57685cbe83dee959149923-15">
                15
               </div>
               <div class="crayon-num crayon-striped-num" data-line="crayon-57685cbe83dee959149923-16">
                16
               </div>
               <div class="crayon-num" data-line="crayon-57685cbe83dee959149923-17">
                17
               </div>
              </div>
             </td>
             <td class="crayon-code">
              <div class="crayon-pre" style="font-size: 12px !important; line-height: 15px !important; -moz-tab-size:4; -o-tab-size:4; -webkit-tab-size:4; tab-size:4;">
               <div class="crayon-line" id="crayon-57685cbe83dee959149923-1">
                <span class="crayon-o">
                 &amp;
                </span>
                <span class="crayon-v">
                 gt
                </span>
                <span class="crayon-sy">
                 ;
                </span>
                <span class="crayon-o">
                 &amp;
                </span>
                <span class="crayon-v">
                 gt
                </span>
                <span class="crayon-sy">
                 ;
                </span>
                <span class="crayon-o">
                 &amp;
                </span>
                <span class="crayon-v">
                 gt
                </span>
                <span class="crayon-sy">
                 ;
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-e">
                 span
                </span>
                <span class="crayon-t">
                 class
                </span>
                <span class="crayon-o">
                 =
                </span>
                <span class="crayon-s">
                 "hljs-keyword"
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-v">
                 from
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-o">
                 /
                </span>
                <span class="crayon-v">
                 span
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-h">
                </span>
                <span class="crayon-v">
                 sklearn
                </span>
                <span class="crayon-h">
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-e">
                 span
                </span>
                <span class="crayon-t">
                 class
                </span>
                <span class="crayon-o">
                 =
                </span>
                <span class="crayon-s">
                 "hljs-keyword"
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-v">
                 import
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-o">
                 /
                </span>
                <span class="crayon-v">
                 span
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-h">
                </span>
                <span class="crayon-v">
                 svm
                </span>
               </div>
               <div class="crayon-line crayon-striped-line" id="crayon-57685cbe83dee959149923-2">
                <span class="crayon-o">
                 &amp;
                </span>
                <span class="crayon-v">
                 gt
                </span>
                <span class="crayon-sy">
                 ;
                </span>
                <span class="crayon-o">
                 &amp;
                </span>
                <span class="crayon-v">
                 gt
                </span>
                <span class="crayon-sy">
                 ;
                </span>
                <span class="crayon-o">
                 &amp;
                </span>
                <span class="crayon-v">
                 gt
                </span>
                <span class="crayon-sy">
                 ;
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-e">
                 span
                </span>
                <span class="crayon-t">
                 class
                </span>
                <span class="crayon-o">
                 =
                </span>
                <span class="crayon-s">
                 "hljs-keyword"
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-v">
                 from
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-o">
                 /
                </span>
                <span class="crayon-v">
                 span
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-h">
                </span>
                <span class="crayon-v">
                 sklearn
                </span>
                <span class="crayon-h">
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-e">
                 span
                </span>
                <span class="crayon-t">
                 class
                </span>
                <span class="crayon-o">
                 =
                </span>
                <span class="crayon-s">
                 "hljs-keyword"
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-v">
                 import
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-o">
                 /
                </span>
                <span class="crayon-v">
                 span
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-h">
                </span>
                <span class="crayon-v">
                 datasets
                </span>
               </div>
               <div class="crayon-line" id="crayon-57685cbe83dee959149923-3">
                <span class="crayon-o">
                 &amp;
                </span>
                <span class="crayon-v">
                 gt
                </span>
                <span class="crayon-sy">
                 ;
                </span>
                <span class="crayon-o">
                 &amp;
                </span>
                <span class="crayon-v">
                 gt
                </span>
                <span class="crayon-sy">
                 ;
                </span>
                <span class="crayon-o">
                 &amp;
                </span>
                <span class="crayon-v">
                 gt
                </span>
                <span class="crayon-sy">
                 ;
                </span>
                <span class="crayon-v">
                 clf
                </span>
                <span class="crayon-h">
                </span>
                <span class="crayon-o">
                 =
                </span>
                <span class="crayon-h">
                </span>
                <span class="crayon-v">
                 svm
                </span>
                <span class="crayon-sy">
                 .
                </span>
                <span class="crayon-e">
                 SVC
                </span>
                <span class="crayon-sy">
                 (
                </span>
                <span class="crayon-sy">
                 )
                </span>
               </div>
               <div class="crayon-line crayon-striped-line" id="crayon-57685cbe83dee959149923-4">
                <span class="crayon-o">
                 &amp;
                </span>
                <span class="crayon-v">
                 gt
                </span>
                <span class="crayon-sy">
                 ;
                </span>
                <span class="crayon-o">
                 &amp;
                </span>
                <span class="crayon-v">
                 gt
                </span>
                <span class="crayon-sy">
                 ;
                </span>
                <span class="crayon-o">
                 &amp;
                </span>
                <span class="crayon-v">
                 gt
                </span>
                <span class="crayon-sy">
                 ;
                </span>
                <span class="crayon-v">
                 iris
                </span>
                <span class="crayon-h">
                </span>
                <span class="crayon-o">
                 =
                </span>
                <span class="crayon-h">
                </span>
                <span class="crayon-v">
                 datasets
                </span>
                <span class="crayon-sy">
                 .
                </span>
                <span class="crayon-e">
                 load_iris
                </span>
                <span class="crayon-sy">
                 (
                </span>
                <span class="crayon-sy">
                 )
                </span>
               </div>
               <div class="crayon-line" id="crayon-57685cbe83dee959149923-5">
                <span class="crayon-o">
                 &amp;
                </span>
                <span class="crayon-v">
                 gt
                </span>
                <span class="crayon-sy">
                 ;
                </span>
                <span class="crayon-o">
                 &amp;
                </span>
                <span class="crayon-v">
                 gt
                </span>
                <span class="crayon-sy">
                 ;
                </span>
                <span class="crayon-o">
                 &amp;
                </span>
                <span class="crayon-v">
                 gt
                </span>
                <span class="crayon-sy">
                 ;
                </span>
                <span class="crayon-v">
                 X
                </span>
                <span class="crayon-sy">
                 ,
                </span>
                <span class="crayon-h">
                </span>
                <span class="crayon-v">
                 y
                </span>
                <span class="crayon-h">
                </span>
                <span class="crayon-o">
                 =
                </span>
                <span class="crayon-h">
                </span>
                <span class="crayon-v">
                 iris
                </span>
                <span class="crayon-sy">
                 .
                </span>
                <span class="crayon-v">
                 data
                </span>
                <span class="crayon-sy">
                 ,
                </span>
                <span class="crayon-h">
                </span>
                <span class="crayon-v">
                 iris
                </span>
                <span class="crayon-sy">
                 .
                </span>
                <span class="crayon-v">
                 target
                </span>
               </div>
               <div class="crayon-line crayon-striped-line" id="crayon-57685cbe83dee959149923-6">
                <span class="crayon-o">
                 &amp;
                </span>
                <span class="crayon-v">
                 gt
                </span>
                <span class="crayon-sy">
                 ;
                </span>
                <span class="crayon-o">
                 &amp;
                </span>
                <span class="crayon-v">
                 gt
                </span>
                <span class="crayon-sy">
                 ;
                </span>
                <span class="crayon-o">
                 &amp;
                </span>
                <span class="crayon-v">
                 gt
                </span>
                <span class="crayon-sy">
                 ;
                </span>
                <span class="crayon-v">
                 clf
                </span>
                <span class="crayon-sy">
                 .
                </span>
                <span class="crayon-e">
                 fit
                </span>
                <span class="crayon-sy">
                 (
                </span>
                <span class="crayon-v">
                 X
                </span>
                <span class="crayon-sy">
                 ,
                </span>
                <span class="crayon-h">
                </span>
                <span class="crayon-v">
                 y
                </span>
                <span class="crayon-sy">
                 )
                </span>
                <span class="crayon-h">
                </span>
               </div>
               <div class="crayon-line" id="crayon-57685cbe83dee959149923-7">
                <span class="crayon-e">
                 SVC
                </span>
                <span class="crayon-sy">
                 (
                </span>
                <span class="crayon-v">
                 C
                </span>
                <span class="crayon-o">
                 =
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-e">
                 span
                </span>
                <span class="crayon-t">
                 class
                </span>
                <span class="crayon-o">
                 =
                </span>
                <span class="crayon-s">
                 "hljs-number"
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-cn">
                 1.0
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-o">
                 /
                </span>
                <span class="crayon-v">
                 span
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-sy">
                 ,
                </span>
                <span class="crayon-h">
                </span>
                <span class="crayon-v">
                 cache_size
                </span>
                <span class="crayon-o">
                 =
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-e">
                 span
                </span>
                <span class="crayon-t">
                 class
                </span>
                <span class="crayon-o">
                 =
                </span>
                <span class="crayon-s">
                 "hljs-number"
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-cn">
                 200
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-o">
                 /
                </span>
                <span class="crayon-v">
                 span
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-sy">
                 ,
                </span>
                <span class="crayon-h">
                </span>
                <span class="crayon-v">
                 class_weight
                </span>
                <span class="crayon-o">
                 =
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-e">
                 span
                </span>
                <span class="crayon-t">
                 class
                </span>
                <span class="crayon-o">
                 =
                </span>
                <span class="crayon-s">
                 "hljs-keyword"
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-v">
                 None
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-o">
                 /
                </span>
                <span class="crayon-v">
                 span
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-sy">
                 ,
                </span>
                <span class="crayon-h">
                </span>
                <span class="crayon-v">
                 coef0
                </span>
                <span class="crayon-o">
                 =
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-e">
                 span
                </span>
                <span class="crayon-t">
                 class
                </span>
                <span class="crayon-o">
                 =
                </span>
                <span class="crayon-s">
                 "hljs-number"
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-cn">
                 0.0
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-o">
                 /
                </span>
                <span class="crayon-v">
                 span
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-sy">
                 ,
                </span>
                <span class="crayon-h">
                </span>
                <span class="crayon-v">
                 degree
                </span>
                <span class="crayon-o">
                 =
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-e">
                 span
                </span>
                <span class="crayon-t">
                 class
                </span>
                <span class="crayon-o">
                 =
                </span>
                <span class="crayon-s">
                 "hljs-number"
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-cn">
                 3
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-o">
                 /
                </span>
                <span class="crayon-v">
                 span
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-sy">
                 ,
                </span>
                <span class="crayon-h">
                </span>
                <span class="crayon-v">
                 gamma
                </span>
                <span class="crayon-o">
                 =
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-e">
                 span
                </span>
                <span class="crayon-t">
                 class
                </span>
                <span class="crayon-o">
                 =
                </span>
                <span class="crayon-s">
                 "hljs-number"
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-cn">
                 0.0
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-o">
                 /
                </span>
                <span class="crayon-v">
                 span
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-sy">
                 ,
                </span>
               </div>
               <div class="crayon-line crayon-striped-line" id="crayon-57685cbe83dee959149923-8">
                <span class="crayon-h">
                </span>
                <span class="crayon-v">
                 kernel
                </span>
                <span class="crayon-o">
                 =
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-e">
                 span
                </span>
                <span class="crayon-t">
                 class
                </span>
                <span class="crayon-o">
                 =
                </span>
                <span class="crayon-s">
                 "hljs-string"
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-s">
                 'rbf'
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-o">
                 /
                </span>
                <span class="crayon-v">
                 span
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-sy">
                 ,
                </span>
                <span class="crayon-h">
                </span>
                <span class="crayon-v">
                 max_iter
                </span>
                <span class="crayon-o">
                 =
                </span>
                <span class="crayon-o">
                 -
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-e">
                 span
                </span>
                <span class="crayon-t">
                 class
                </span>
                <span class="crayon-o">
                 =
                </span>
                <span class="crayon-s">
                 "hljs-number"
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-cn">
                 1
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-o">
                 /
                </span>
                <span class="crayon-v">
                 span
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-sy">
                 ,
                </span>
                <span class="crayon-h">
                </span>
                <span class="crayon-v">
                 probability
                </span>
                <span class="crayon-o">
                 =
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-e">
                 span
                </span>
                <span class="crayon-t">
                 class
                </span>
                <span class="crayon-o">
                 =
                </span>
                <span class="crayon-s">
                 "hljs-keyword"
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-t">
                 False
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-o">
                 /
                </span>
                <span class="crayon-v">
                 span
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-sy">
                 ,
                </span>
                <span class="crayon-h">
                </span>
                <span class="crayon-v">
                 random_state
                </span>
                <span class="crayon-o">
                 =
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-e">
                 span
                </span>
                <span class="crayon-t">
                 class
                </span>
                <span class="crayon-o">
                 =
                </span>
                <span class="crayon-s">
                 "hljs-keyword"
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-v">
                 None
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-o">
                 /
                </span>
                <span class="crayon-v">
                 span
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-sy">
                 ,
                </span>
               </div>
               <div class="crayon-line" id="crayon-57685cbe83dee959149923-9">
                <span class="crayon-h">
                </span>
                <span class="crayon-v">
                 shrinking
                </span>
                <span class="crayon-o">
                 =
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-e">
                 span
                </span>
                <span class="crayon-t">
                 class
                </span>
                <span class="crayon-o">
                 =
                </span>
                <span class="crayon-s">
                 "hljs-keyword"
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-t">
                 True
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-o">
                 /
                </span>
                <span class="crayon-v">
                 span
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-sy">
                 ,
                </span>
                <span class="crayon-h">
                </span>
                <span class="crayon-v">
                 tol
                </span>
                <span class="crayon-o">
                 =
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-e">
                 span
                </span>
                <span class="crayon-t">
                 class
                </span>
                <span class="crayon-o">
                 =
                </span>
                <span class="crayon-s">
                 "hljs-number"
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-cn">
                 0.001
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-o">
                 /
                </span>
                <span class="crayon-v">
                 span
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-sy">
                 ,
                </span>
                <span class="crayon-h">
                </span>
                <span class="crayon-v">
                 verbose
                </span>
                <span class="crayon-o">
                 =
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-e">
                 span
                </span>
                <span class="crayon-t">
                 class
                </span>
                <span class="crayon-o">
                 =
                </span>
                <span class="crayon-s">
                 "hljs-keyword"
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-t">
                 False
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-o">
                 /
                </span>
                <span class="crayon-v">
                 span
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-sy">
                 )
                </span>
               </div>
               <div class="crayon-line crayon-striped-line" id="crayon-57685cbe83dee959149923-10">
               </div>
               <div class="crayon-line" id="crayon-57685cbe83dee959149923-11">
                <span class="crayon-o">
                 &amp;
                </span>
                <span class="crayon-v">
                 gt
                </span>
                <span class="crayon-sy">
                 ;
                </span>
                <span class="crayon-o">
                 &amp;
                </span>
                <span class="crayon-v">
                 gt
                </span>
                <span class="crayon-sy">
                 ;
                </span>
                <span class="crayon-o">
                 &amp;
                </span>
                <span class="crayon-v">
                 gt
                </span>
                <span class="crayon-sy">
                 ;
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-e">
                 span
                </span>
                <span class="crayon-t">
                 class
                </span>
                <span class="crayon-o">
                 =
                </span>
                <span class="crayon-s">
                 "hljs-keyword"
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-v">
                 import
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-o">
                 /
                </span>
                <span class="crayon-v">
                 span
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-h">
                </span>
                <span class="crayon-v">
                 pickle
                </span>
               </div>
               <div class="crayon-line crayon-striped-line" id="crayon-57685cbe83dee959149923-12">
                <span class="crayon-o">
                 &amp;
                </span>
                <span class="crayon-v">
                 gt
                </span>
                <span class="crayon-sy">
                 ;
                </span>
                <span class="crayon-o">
                 &amp;
                </span>
                <span class="crayon-v">
                 gt
                </span>
                <span class="crayon-sy">
                 ;
                </span>
                <span class="crayon-o">
                 &amp;
                </span>
                <span class="crayon-v">
                 gt
                </span>
                <span class="crayon-sy">
                 ;
                </span>
                <span class="crayon-v">
                 s
                </span>
                <span class="crayon-h">
                </span>
                <span class="crayon-o">
                 =
                </span>
                <span class="crayon-h">
                </span>
                <span class="crayon-v">
                 pickle
                </span>
                <span class="crayon-sy">
                 .
                </span>
                <span class="crayon-e">
                 dumps
                </span>
                <span class="crayon-sy">
                 (
                </span>
                <span class="crayon-v">
                 clf
                </span>
                <span class="crayon-sy">
                 )
                </span>
               </div>
               <div class="crayon-line" id="crayon-57685cbe83dee959149923-13">
                <span class="crayon-o">
                 &amp;
                </span>
                <span class="crayon-v">
                 gt
                </span>
                <span class="crayon-sy">
                 ;
                </span>
                <span class="crayon-o">
                 &amp;
                </span>
                <span class="crayon-v">
                 gt
                </span>
                <span class="crayon-sy">
                 ;
                </span>
                <span class="crayon-o">
                 &amp;
                </span>
                <span class="crayon-v">
                 gt
                </span>
                <span class="crayon-sy">
                 ;
                </span>
                <span class="crayon-v">
                 clf2
                </span>
                <span class="crayon-h">
                </span>
                <span class="crayon-o">
                 =
                </span>
                <span class="crayon-h">
                </span>
                <span class="crayon-v">
                 pickle
                </span>
                <span class="crayon-sy">
                 .
                </span>
                <span class="crayon-e">
                 loads
                </span>
                <span class="crayon-sy">
                 (
                </span>
                <span class="crayon-v">
                 s
                </span>
                <span class="crayon-sy">
                 )
                </span>
               </div>
               <div class="crayon-line crayon-striped-line" id="crayon-57685cbe83dee959149923-14">
                <span class="crayon-o">
                 &amp;
                </span>
                <span class="crayon-v">
                 gt
                </span>
                <span class="crayon-sy">
                 ;
                </span>
                <span class="crayon-o">
                 &amp;
                </span>
                <span class="crayon-v">
                 gt
                </span>
                <span class="crayon-sy">
                 ;
                </span>
                <span class="crayon-o">
                 &amp;
                </span>
                <span class="crayon-v">
                 gt
                </span>
                <span class="crayon-sy">
                 ;
                </span>
                <span class="crayon-v">
                 clf2
                </span>
                <span class="crayon-sy">
                 .
                </span>
                <span class="crayon-e">
                 predict
                </span>
                <span class="crayon-sy">
                 (
                </span>
                <span class="crayon-v">
                 X
                </span>
                <span class="crayon-sy">
                 [
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-e">
                 span
                </span>
                <span class="crayon-t">
                 class
                </span>
                <span class="crayon-o">
                 =
                </span>
                <span class="crayon-s">
                 "hljs-number"
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-cn">
                 0
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-o">
                 /
                </span>
                <span class="crayon-v">
                 span
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-sy">
                 ]
                </span>
                <span class="crayon-sy">
                 )
                </span>
               </div>
               <div class="crayon-line" id="crayon-57685cbe83dee959149923-15">
                <span class="crayon-t">
                 array
                </span>
                <span class="crayon-sy">
                 (
                </span>
                <span class="crayon-sy">
                 [
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-e">
                 span
                </span>
                <span class="crayon-t">
                 class
                </span>
                <span class="crayon-o">
                 =
                </span>
                <span class="crayon-s">
                 "hljs-number"
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-cn">
                 0
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-o">
                 /
                </span>
                <span class="crayon-v">
                 span
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-sy">
                 ]
                </span>
                <span class="crayon-sy">
                 )
                </span>
               </div>
               <div class="crayon-line crayon-striped-line" id="crayon-57685cbe83dee959149923-16">
                <span class="crayon-o">
                 &amp;
                </span>
                <span class="crayon-v">
                 gt
                </span>
                <span class="crayon-sy">
                 ;
                </span>
                <span class="crayon-o">
                 &amp;
                </span>
                <span class="crayon-v">
                 gt
                </span>
                <span class="crayon-sy">
                 ;
                </span>
                <span class="crayon-o">
                 &amp;
                </span>
                <span class="crayon-v">
                 gt
                </span>
                <span class="crayon-sy">
                 ;
                </span>
                <span class="crayon-v">
                 y
                </span>
                <span class="crayon-sy">
                 [
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-e">
                 span
                </span>
                <span class="crayon-t">
                 class
                </span>
                <span class="crayon-o">
                 =
                </span>
                <span class="crayon-s">
                 "hljs-number"
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-cn">
                 0
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-o">
                 /
                </span>
                <span class="crayon-v">
                 span
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-sy">
                 ]
                </span>
               </div>
               <div class="crayon-line" id="crayon-57685cbe83dee959149923-17">
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-e">
                 span
                </span>
                <span class="crayon-t">
                 class
                </span>
                <span class="crayon-o">
                 =
                </span>
                <span class="crayon-s">
                 "hljs-number"
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-cn">
                 0
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-o">
                 /
                </span>
                <span class="crayon-v">
                 span
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
               </div>
              </div>
             </td>
            </tr>
           </tbody>
          </table>
         </div>
        </div>
        <!-- [Format Time: 0.0727 seconds] -->
        <p>
        </p>
       </blockquote>
       <p>
        对于scikit，也许使用joblib的pickle替代——（joblib.dump&amp;joblib.load）更有趣。因为它在处理带数据时更高效。但是遗憾的是它只能把数据持久化到硬盘而不是一个字符串（译注：搬到string字符串意味着数据在内存中）：
       </p>
       <blockquote>
        <p>
        </p>
        <!-- Crayon Syntax Highlighter v_2.7.2_beta -->
        <div class="crayon-syntax crayon-theme-classic crayon-font-monaco crayon-os-pc print-yes notranslate" data-settings=" minimize scroll-mouseover" id="crayon-57685cbe83df5502507189" style=" margin-top: 12px; margin-bottom: 12px; font-size: 12px !important; line-height: 15px !important;">
         <div class="crayon-toolbar" data-settings=" mouseover overlay hide delay" style="font-size: 12px !important;height: 18px !important; line-height: 18px !important;">
          <span class="crayon-title">
          </span>
          <div class="crayon-tools" style="font-size: 12px !important;height: 18px !important; line-height: 18px !important;">
           <div class="crayon-button crayon-nums-button" title="切换是否显示行编号">
            <div class="crayon-button-icon">
            </div>
           </div>
           <div class="crayon-button crayon-plain-button" title="纯文本显示代码">
            <div class="crayon-button-icon">
            </div>
           </div>
           <div class="crayon-button crayon-wrap-button" title="切换自动换行">
            <div class="crayon-button-icon">
            </div>
           </div>
           <div class="crayon-button crayon-expand-button" title="点击展开代码">
            <div class="crayon-button-icon">
            </div>
           </div>
           <div class="crayon-button crayon-copy-button" title="复制代码">
            <div class="crayon-button-icon">
            </div>
           </div>
           <div class="crayon-button crayon-popup-button" title="在新窗口中显示代码">
            <div class="crayon-button-icon">
            </div>
           </div>
          </div>
         </div>
         <div class="crayon-info" style="min-height: 16.8px !important; line-height: 16.8px !important;">
         </div>
         <div class="crayon-plain-wrap">
          <textarea class="crayon-plain print-no" data-settings="dblclick" readonly="" style="-moz-tab-size:4; -o-tab-size:4; -webkit-tab-size:4; tab-size:4; font-size: 12px !important; line-height: 15px !important;" wrap="soft">
           &amp;gt;&amp;gt;&amp;gt;&lt;span class="hljs-keyword"&gt;from&lt;/span&gt; sklearn.externals &lt;span class="hljs-keyword"&gt;import&lt;/span&gt; joblib
&amp;gt;&amp;gt;&amp;gt;joblib.dump(clf, &lt;span class="hljs-string"&gt;'filename.pkl'&lt;/span&gt;)
          </textarea>
         </div>
         <div class="crayon-main" style="">
          <table class="crayon-table">
           <tbody>
            <tr class="crayon-row">
             <td class="crayon-nums " data-settings="show">
              <div class="crayon-nums-content" style="font-size: 12px !important; line-height: 15px !important;">
               <div class="crayon-num" data-line="crayon-57685cbe83df5502507189-1">
                1
               </div>
               <div class="crayon-num crayon-striped-num" data-line="crayon-57685cbe83df5502507189-2">
                2
               </div>
              </div>
             </td>
             <td class="crayon-code">
              <div class="crayon-pre" style="font-size: 12px !important; line-height: 15px !important; -moz-tab-size:4; -o-tab-size:4; -webkit-tab-size:4; tab-size:4;">
               <div class="crayon-line" id="crayon-57685cbe83df5502507189-1">
                <span class="crayon-o">
                 &amp;
                </span>
                <span class="crayon-v">
                 gt
                </span>
                <span class="crayon-sy">
                 ;
                </span>
                <span class="crayon-o">
                 &amp;
                </span>
                <span class="crayon-v">
                 gt
                </span>
                <span class="crayon-sy">
                 ;
                </span>
                <span class="crayon-o">
                 &amp;
                </span>
                <span class="crayon-v">
                 gt
                </span>
                <span class="crayon-sy">
                 ;
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-e">
                 span
                </span>
                <span class="crayon-t">
                 class
                </span>
                <span class="crayon-o">
                 =
                </span>
                <span class="crayon-s">
                 "hljs-keyword"
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-v">
                 from
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-o">
                 /
                </span>
                <span class="crayon-v">
                 span
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-h">
                </span>
                <span class="crayon-v">
                 sklearn
                </span>
                <span class="crayon-sy">
                 .
                </span>
                <span class="crayon-v">
                 externals
                </span>
                <span class="crayon-h">
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-e">
                 span
                </span>
                <span class="crayon-t">
                 class
                </span>
                <span class="crayon-o">
                 =
                </span>
                <span class="crayon-s">
                 "hljs-keyword"
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-v">
                 import
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-o">
                 /
                </span>
                <span class="crayon-v">
                 span
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-h">
                </span>
                <span class="crayon-v">
                 joblib
                </span>
               </div>
               <div class="crayon-line crayon-striped-line" id="crayon-57685cbe83df5502507189-2">
                <span class="crayon-o">
                 &amp;
                </span>
                <span class="crayon-v">
                 gt
                </span>
                <span class="crayon-sy">
                 ;
                </span>
                <span class="crayon-o">
                 &amp;
                </span>
                <span class="crayon-v">
                 gt
                </span>
                <span class="crayon-sy">
                 ;
                </span>
                <span class="crayon-o">
                 &amp;
                </span>
                <span class="crayon-v">
                 gt
                </span>
                <span class="crayon-sy">
                 ;
                </span>
                <span class="crayon-v">
                 joblib
                </span>
                <span class="crayon-sy">
                 .
                </span>
                <span class="crayon-e">
                 dump
                </span>
                <span class="crayon-sy">
                 (
                </span>
                <span class="crayon-v">
                 clf
                </span>
                <span class="crayon-sy">
                 ,
                </span>
                <span class="crayon-h">
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-e">
                 span
                </span>
                <span class="crayon-t">
                 class
                </span>
                <span class="crayon-o">
                 =
                </span>
                <span class="crayon-s">
                 "hljs-string"
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-s">
                 'filename.pkl'
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-o">
                 /
                </span>
                <span class="crayon-v">
                 span
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-sy">
                 )
                </span>
               </div>
              </div>
             </td>
            </tr>
           </tbody>
          </table>
         </div>
        </div>
        <!-- [Format Time: 0.0103 seconds] -->
        <p>
        </p>
       </blockquote>
       <p>
        往后你就可以加载这个转储的模型（也能在另一个Python进程中使用），如下：
       </p>
       <blockquote>
        <p>
        </p>
        <!-- Crayon Syntax Highlighter v_2.7.2_beta -->
        <div class="crayon-syntax crayon-theme-classic crayon-font-monaco crayon-os-pc print-yes notranslate" data-settings=" minimize scroll-mouseover" id="crayon-57685cbe83dfb757393967" style=" margin-top: 12px; margin-bottom: 12px; font-size: 12px !important; line-height: 15px !important;">
         <div class="crayon-toolbar" data-settings=" mouseover overlay hide delay" style="font-size: 12px !important;height: 18px !important; line-height: 18px !important;">
          <span class="crayon-title">
          </span>
          <div class="crayon-tools" style="font-size: 12px !important;height: 18px !important; line-height: 18px !important;">
           <div class="crayon-button crayon-nums-button" title="切换是否显示行编号">
            <div class="crayon-button-icon">
            </div>
           </div>
           <div class="crayon-button crayon-plain-button" title="纯文本显示代码">
            <div class="crayon-button-icon">
            </div>
           </div>
           <div class="crayon-button crayon-wrap-button" title="切换自动换行">
            <div class="crayon-button-icon">
            </div>
           </div>
           <div class="crayon-button crayon-expand-button" title="点击展开代码">
            <div class="crayon-button-icon">
            </div>
           </div>
           <div class="crayon-button crayon-copy-button" title="复制代码">
            <div class="crayon-button-icon">
            </div>
           </div>
           <div class="crayon-button crayon-popup-button" title="在新窗口中显示代码">
            <div class="crayon-button-icon">
            </div>
           </div>
          </div>
         </div>
         <div class="crayon-info" style="min-height: 16.8px !important; line-height: 16.8px !important;">
         </div>
         <div class="crayon-plain-wrap">
          <textarea class="crayon-plain print-no" data-settings="dblclick" readonly="" style="-moz-tab-size:4; -o-tab-size:4; -webkit-tab-size:4; tab-size:4; font-size: 12px !important; line-height: 15px !important;" wrap="soft">
           &amp;gt;&amp;gt;&amp;gt;clf = joblib.load(&lt;span class="hljs-string"&gt;'filename.pkl'&lt;/span&gt;)
          </textarea>
         </div>
         <div class="crayon-main" style="">
          <table class="crayon-table">
           <tbody>
            <tr class="crayon-row">
             <td class="crayon-nums " data-settings="show">
              <div class="crayon-nums-content" style="font-size: 12px !important; line-height: 15px !important;">
               <div class="crayon-num" data-line="crayon-57685cbe83dfb757393967-1">
                1
               </div>
              </div>
             </td>
             <td class="crayon-code">
              <div class="crayon-pre" style="font-size: 12px !important; line-height: 15px !important; -moz-tab-size:4; -o-tab-size:4; -webkit-tab-size:4; tab-size:4;">
               <div class="crayon-line" id="crayon-57685cbe83dfb757393967-1">
                <span class="crayon-o">
                 &amp;
                </span>
                <span class="crayon-v">
                 gt
                </span>
                <span class="crayon-sy">
                 ;
                </span>
                <span class="crayon-o">
                 &amp;
                </span>
                <span class="crayon-v">
                 gt
                </span>
                <span class="crayon-sy">
                 ;
                </span>
                <span class="crayon-o">
                 &amp;
                </span>
                <span class="crayon-v">
                 gt
                </span>
                <span class="crayon-sy">
                 ;
                </span>
                <span class="crayon-v">
                 clf
                </span>
                <span class="crayon-h">
                </span>
                <span class="crayon-o">
                 =
                </span>
                <span class="crayon-h">
                </span>
                <span class="crayon-v">
                 joblib
                </span>
                <span class="crayon-sy">
                 .
                </span>
                <span class="crayon-e">
                 load
                </span>
                <span class="crayon-sy">
                 (
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-e">
                 span
                </span>
                <span class="crayon-t">
                 class
                </span>
                <span class="crayon-o">
                 =
                </span>
                <span class="crayon-s">
                 "hljs-string"
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-s">
                 'filename.pkl'
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-o">
                 /
                </span>
                <span class="crayon-v">
                 span
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-sy">
                 )
                </span>
               </div>
              </div>
             </td>
            </tr>
           </tbody>
          </table>
         </div>
        </div>
        <!-- [Format Time: 0.0230 seconds] -->
        <p>
         <code>
          注意
         </code>
         ：
         <br/>
         joblib.dump返回一个文件名的列表，每一个numpy数组元素包含一个clf在文件系统上的名字，在用joblib.load加载的时候所有的文件需要在相同的文件夹下
        </p>
       </blockquote>
       <p>
        注意pickle有一些安全和可维护方面的问题。请参考Model persistent 获得在scikit-learn中模型持久化的细节。
       </p>
       <p>
        五、惯例约定
       </p>
       <p>
        scikit-learn的各种拟合（评估）函数遵循一些确定的规则以使得他们的用法能够被预想到（译：使得各种学习方法的用法统一起来）
       </p>
       <ul>
        <li>
         ①类型转换除非特别指定，输入将被转换为float64
         <br/>
         <!-- Crayon Syntax Highlighter v_2.7.2_beta -->
         <div class="crayon-syntax crayon-theme-classic crayon-font-monaco crayon-os-pc print-yes notranslate" data-settings=" minimize scroll-mouseover" id="crayon-57685cbe83e02889262725" style=" margin-top: 12px; margin-bottom: 12px; font-size: 12px !important; line-height: 15px !important;">
          <div class="crayon-toolbar" data-settings=" mouseover overlay hide delay" style="font-size: 12px !important;height: 18px !important; line-height: 18px !important;">
           <span class="crayon-title">
           </span>
           <div class="crayon-tools" style="font-size: 12px !important;height: 18px !important; line-height: 18px !important;">
            <div class="crayon-button crayon-nums-button" title="切换是否显示行编号">
             <div class="crayon-button-icon">
             </div>
            </div>
            <div class="crayon-button crayon-plain-button" title="纯文本显示代码">
             <div class="crayon-button-icon">
             </div>
            </div>
            <div class="crayon-button crayon-wrap-button" title="切换自动换行">
             <div class="crayon-button-icon">
             </div>
            </div>
            <div class="crayon-button crayon-expand-button" title="点击展开代码">
             <div class="crayon-button-icon">
             </div>
            </div>
            <div class="crayon-button crayon-copy-button" title="复制代码">
             <div class="crayon-button-icon">
             </div>
            </div>
            <div class="crayon-button crayon-popup-button" title="在新窗口中显示代码">
             <div class="crayon-button-icon">
             </div>
            </div>
           </div>
          </div>
          <div class="crayon-info" style="min-height: 16.8px !important; line-height: 16.8px !important;">
          </div>
          <div class="crayon-plain-wrap">
           <textarea class="crayon-plain print-no" data-settings="dblclick" readonly="" style="-moz-tab-size:4; -o-tab-size:4; -webkit-tab-size:4; tab-size:4; font-size: 12px !important; line-height: 15px !important;" wrap="soft">
            &lt;span class="hljs-keyword"&gt;import&lt;/span&gt; numpy
&lt;span class="hljs-keyword"&gt;from&lt;/span&gt; sklearn &lt;span class="hljs-keyword"&gt;import&lt;/span&gt; random_projection
rng = np.random.RandomState(&lt;span class="hljs-number"&gt;0&lt;/span&gt;)
X = rng.rand(&lt;span class="hljs-number"&gt;10&lt;/span&gt;,&lt;span class="hljs-number"&gt;2000&lt;/span&gt;)
X = np.array(X,dtype =&lt;span class="hljs-string"&gt;'float32'&lt;/span&gt;)
&lt;span class="hljs-keyword"&gt;print&lt;/span&gt; x.dtype
transformer = random_projection.GaussianRandomProjection()
X_new = transformer.fit_transform(X)
&lt;span class="hljs-keyword"&gt;print&lt;/span&gt; X_new.dtype
           </textarea>
          </div>
          <div class="crayon-main" style="">
           <table class="crayon-table">
            <tbody>
             <tr class="crayon-row">
              <td class="crayon-nums " data-settings="show">
               <div class="crayon-nums-content" style="font-size: 12px !important; line-height: 15px !important;">
                <div class="crayon-num" data-line="crayon-57685cbe83e02889262725-1">
                 1
                </div>
                <div class="crayon-num crayon-striped-num" data-line="crayon-57685cbe83e02889262725-2">
                 2
                </div>
                <div class="crayon-num" data-line="crayon-57685cbe83e02889262725-3">
                 3
                </div>
                <div class="crayon-num crayon-striped-num" data-line="crayon-57685cbe83e02889262725-4">
                 4
                </div>
                <div class="crayon-num" data-line="crayon-57685cbe83e02889262725-5">
                 5
                </div>
                <div class="crayon-num crayon-striped-num" data-line="crayon-57685cbe83e02889262725-6">
                 6
                </div>
                <div class="crayon-num" data-line="crayon-57685cbe83e02889262725-7">
                 7
                </div>
                <div class="crayon-num crayon-striped-num" data-line="crayon-57685cbe83e02889262725-8">
                 8
                </div>
                <div class="crayon-num" data-line="crayon-57685cbe83e02889262725-9">
                 9
                </div>
               </div>
              </td>
              <td class="crayon-code">
               <div class="crayon-pre" style="font-size: 12px !important; line-height: 15px !important; -moz-tab-size:4; -o-tab-size:4; -webkit-tab-size:4; tab-size:4;">
                <div class="crayon-line" id="crayon-57685cbe83e02889262725-1">
                 <span class="crayon-o">
                  &lt;
                 </span>
                 <span class="crayon-e">
                  span
                 </span>
                 <span class="crayon-t">
                  class
                 </span>
                 <span class="crayon-o">
                  =
                 </span>
                 <span class="crayon-s">
                  "hljs-keyword"
                 </span>
                 <span class="crayon-o">
                  &gt;
                 </span>
                 <span class="crayon-v">
                  import
                 </span>
                 <span class="crayon-o">
                  &lt;
                 </span>
                 <span class="crayon-o">
                  /
                 </span>
                 <span class="crayon-v">
                  span
                 </span>
                 <span class="crayon-o">
                  &gt;
                 </span>
                 <span class="crayon-h">
                 </span>
                 <span class="crayon-v">
                  numpy
                 </span>
                </div>
                <div class="crayon-line crayon-striped-line" id="crayon-57685cbe83e02889262725-2">
                 <span class="crayon-o">
                  &lt;
                 </span>
                 <span class="crayon-e">
                  span
                 </span>
                 <span class="crayon-t">
                  class
                 </span>
                 <span class="crayon-o">
                  =
                 </span>
                 <span class="crayon-s">
                  "hljs-keyword"
                 </span>
                 <span class="crayon-o">
                  &gt;
                 </span>
                 <span class="crayon-v">
                  from
                 </span>
                 <span class="crayon-o">
                  &lt;
                 </span>
                 <span class="crayon-o">
                  /
                 </span>
                 <span class="crayon-v">
                  span
                 </span>
                 <span class="crayon-o">
                  &gt;
                 </span>
                 <span class="crayon-h">
                 </span>
                 <span class="crayon-v">
                  sklearn
                 </span>
                 <span class="crayon-h">
                 </span>
                 <span class="crayon-o">
                  &lt;
                 </span>
                 <span class="crayon-e">
                  span
                 </span>
                 <span class="crayon-t">
                  class
                 </span>
                 <span class="crayon-o">
                  =
                 </span>
                 <span class="crayon-s">
                  "hljs-keyword"
                 </span>
                 <span class="crayon-o">
                  &gt;
                 </span>
                 <span class="crayon-v">
                  import
                 </span>
                 <span class="crayon-o">
                  &lt;
                 </span>
                 <span class="crayon-o">
                  /
                 </span>
                 <span class="crayon-v">
                  span
                 </span>
                 <span class="crayon-o">
                  &gt;
                 </span>
                 <span class="crayon-h">
                 </span>
                 <span class="crayon-e">
                  random_projection
                 </span>
                </div>
                <div class="crayon-line" id="crayon-57685cbe83e02889262725-3">
                 <span class="crayon-v">
                  rng
                 </span>
                 <span class="crayon-h">
                 </span>
                 <span class="crayon-o">
                  =
                 </span>
                 <span class="crayon-h">
                 </span>
                 <span class="crayon-v">
                  np
                 </span>
                 <span class="crayon-sy">
                  .
                 </span>
                 <span class="crayon-v">
                  random
                 </span>
                 <span class="crayon-sy">
                  .
                 </span>
                 <span class="crayon-e">
                  RandomState
                 </span>
                 <span class="crayon-sy">
                  (
                 </span>
                 <span class="crayon-o">
                  &lt;
                 </span>
                 <span class="crayon-e">
                  span
                 </span>
                 <span class="crayon-t">
                  class
                 </span>
                 <span class="crayon-o">
                  =
                 </span>
                 <span class="crayon-s">
                  "hljs-number"
                 </span>
                 <span class="crayon-o">
                  &gt;
                 </span>
                 <span class="crayon-cn">
                  0
                 </span>
                 <span class="crayon-o">
                  &lt;
                 </span>
                 <span class="crayon-o">
                  /
                 </span>
                 <span class="crayon-v">
                  span
                 </span>
                 <span class="crayon-o">
                  &gt;
                 </span>
                 <span class="crayon-sy">
                  )
                 </span>
                </div>
                <div class="crayon-line crayon-striped-line" id="crayon-57685cbe83e02889262725-4">
                 <span class="crayon-v">
                  X
                 </span>
                 <span class="crayon-h">
                 </span>
                 <span class="crayon-o">
                  =
                 </span>
                 <span class="crayon-h">
                 </span>
                 <span class="crayon-v">
                  rng
                 </span>
                 <span class="crayon-sy">
                  .
                 </span>
                 <span class="crayon-e">
                  rand
                 </span>
                 <span class="crayon-sy">
                  (
                 </span>
                 <span class="crayon-o">
                  &lt;
                 </span>
                 <span class="crayon-e">
                  span
                 </span>
                 <span class="crayon-t">
                  class
                 </span>
                 <span class="crayon-o">
                  =
                 </span>
                 <span class="crayon-s">
                  "hljs-number"
                 </span>
                 <span class="crayon-o">
                  &gt;
                 </span>
                 <span class="crayon-cn">
                  10
                 </span>
                 <span class="crayon-o">
                  &lt;
                 </span>
                 <span class="crayon-o">
                  /
                 </span>
                 <span class="crayon-v">
                  span
                 </span>
                 <span class="crayon-o">
                  &gt;
                 </span>
                 <span class="crayon-sy">
                  ,
                 </span>
                 <span class="crayon-o">
                  &lt;
                 </span>
                 <span class="crayon-e">
                  span
                 </span>
                 <span class="crayon-t">
                  class
                 </span>
                 <span class="crayon-o">
                  =
                 </span>
                 <span class="crayon-s">
                  "hljs-number"
                 </span>
                 <span class="crayon-o">
                  &gt;
                 </span>
                 <span class="crayon-cn">
                  2000
                 </span>
                 <span class="crayon-o">
                  &lt;
                 </span>
                 <span class="crayon-o">
                  /
                 </span>
                 <span class="crayon-v">
                  span
                 </span>
                 <span class="crayon-o">
                  &gt;
                 </span>
                 <span class="crayon-sy">
                  )
                 </span>
                </div>
                <div class="crayon-line" id="crayon-57685cbe83e02889262725-5">
                 <span class="crayon-v">
                  X
                 </span>
                 <span class="crayon-h">
                 </span>
                 <span class="crayon-o">
                  =
                 </span>
                 <span class="crayon-h">
                 </span>
                 <span class="crayon-v">
                  np
                 </span>
                 <span class="crayon-sy">
                  .
                 </span>
                 <span class="crayon-t">
                  array
                 </span>
                 <span class="crayon-sy">
                  (
                 </span>
                 <span class="crayon-v">
                  X
                 </span>
                 <span class="crayon-sy">
                  ,
                 </span>
                 <span class="crayon-v">
                  dtype
                 </span>
                 <span class="crayon-h">
                 </span>
                 <span class="crayon-o">
                  =
                 </span>
                 <span class="crayon-o">
                  &lt;
                 </span>
                 <span class="crayon-e">
                  span
                 </span>
                 <span class="crayon-t">
                  class
                 </span>
                 <span class="crayon-o">
                  =
                 </span>
                 <span class="crayon-s">
                  "hljs-string"
                 </span>
                 <span class="crayon-o">
                  &gt;
                 </span>
                 <span class="crayon-s">
                  'float32'
                 </span>
                 <span class="crayon-o">
                  &lt;
                 </span>
                 <span class="crayon-o">
                  /
                 </span>
                 <span class="crayon-v">
                  span
                 </span>
                 <span class="crayon-o">
                  &gt;
                 </span>
                 <span class="crayon-sy">
                  )
                 </span>
                </div>
                <div class="crayon-line crayon-striped-line" id="crayon-57685cbe83e02889262725-6">
                 <span class="crayon-o">
                  &lt;
                 </span>
                 <span class="crayon-e">
                  span
                 </span>
                 <span class="crayon-t">
                  class
                 </span>
                 <span class="crayon-o">
                  =
                 </span>
                 <span class="crayon-s">
                  "hljs-keyword"
                 </span>
                 <span class="crayon-o">
                  &gt;
                 </span>
                 <span class="crayon-v">
                  print
                 </span>
                 <span class="crayon-o">
                  &lt;
                 </span>
                 <span class="crayon-o">
                  /
                 </span>
                 <span class="crayon-v">
                  span
                 </span>
                 <span class="crayon-o">
                  &gt;
                 </span>
                 <span class="crayon-h">
                 </span>
                 <span class="crayon-v">
                  x
                 </span>
                 <span class="crayon-sy">
                  .
                 </span>
                 <span class="crayon-e">
                  dtype
                 </span>
                </div>
                <div class="crayon-line" id="crayon-57685cbe83e02889262725-7">
                 <span class="crayon-v">
                  transformer
                 </span>
                 <span class="crayon-h">
                 </span>
                 <span class="crayon-o">
                  =
                 </span>
                 <span class="crayon-h">
                 </span>
                 <span class="crayon-v">
                  random_projection
                 </span>
                 <span class="crayon-sy">
                  .
                 </span>
                 <span class="crayon-e">
                  GaussianRandomProjection
                 </span>
                 <span class="crayon-sy">
                  (
                 </span>
                 <span class="crayon-sy">
                  )
                 </span>
                </div>
                <div class="crayon-line crayon-striped-line" id="crayon-57685cbe83e02889262725-8">
                 <span class="crayon-v">
                  X_new
                 </span>
                 <span class="crayon-h">
                 </span>
                 <span class="crayon-o">
                  =
                 </span>
                 <span class="crayon-h">
                 </span>
                 <span class="crayon-v">
                  transformer
                 </span>
                 <span class="crayon-sy">
                  .
                 </span>
                 <span class="crayon-e">
                  fit_transform
                 </span>
                 <span class="crayon-sy">
                  (
                 </span>
                 <span class="crayon-v">
                  X
                 </span>
                 <span class="crayon-sy">
                  )
                 </span>
                </div>
                <div class="crayon-line" id="crayon-57685cbe83e02889262725-9">
                 <span class="crayon-o">
                  &lt;
                 </span>
                 <span class="crayon-e">
                  span
                 </span>
                 <span class="crayon-t">
                  class
                 </span>
                 <span class="crayon-o">
                  =
                 </span>
                 <span class="crayon-s">
                  "hljs-keyword"
                 </span>
                 <span class="crayon-o">
                  &gt;
                 </span>
                 <span class="crayon-v">
                  print
                 </span>
                 <span class="crayon-o">
                  &lt;
                 </span>
                 <span class="crayon-o">
                  /
                 </span>
                 <span class="crayon-v">
                  span
                 </span>
                 <span class="crayon-o">
                  &gt;
                 </span>
                 <span class="crayon-h">
                 </span>
                 <span class="crayon-v">
                  X_new
                 </span>
                 <span class="crayon-sy">
                  .
                 </span>
                 <span class="crayon-v">
                  dtype
                 </span>
                </div>
               </div>
              </td>
             </tr>
            </tbody>
           </table>
          </div>
         </div>
         <!-- [Format Time: 0.0301 seconds] -->
         <br/>
         在这个例子中，X是float32，被fit_transform(X)转换成float64,回归被转换成float64，分类目标维持不变.
        </li>
       </ul>
       <blockquote>
        <p>
        </p>
        <!-- Crayon Syntax Highlighter v_2.7.2_beta -->
        <div class="crayon-syntax crayon-theme-classic crayon-font-monaco crayon-os-pc print-yes notranslate" data-settings=" minimize scroll-mouseover" id="crayon-57685cbe83e08997068718" style=" margin-top: 12px; margin-bottom: 12px; font-size: 12px !important; line-height: 15px !important;">
         <div class="crayon-toolbar" data-settings=" mouseover overlay hide delay" style="font-size: 12px !important;height: 18px !important; line-height: 18px !important;">
          <span class="crayon-title">
          </span>
          <div class="crayon-tools" style="font-size: 12px !important;height: 18px !important; line-height: 18px !important;">
           <div class="crayon-button crayon-nums-button" title="切换是否显示行编号">
            <div class="crayon-button-icon">
            </div>
           </div>
           <div class="crayon-button crayon-plain-button" title="纯文本显示代码">
            <div class="crayon-button-icon">
            </div>
           </div>
           <div class="crayon-button crayon-wrap-button" title="切换自动换行">
            <div class="crayon-button-icon">
            </div>
           </div>
           <div class="crayon-button crayon-expand-button" title="点击展开代码">
            <div class="crayon-button-icon">
            </div>
           </div>
           <div class="crayon-button crayon-copy-button" title="复制代码">
            <div class="crayon-button-icon">
            </div>
           </div>
           <div class="crayon-button crayon-popup-button" title="在新窗口中显示代码">
            <div class="crayon-button-icon">
            </div>
           </div>
          </div>
         </div>
         <div class="crayon-info" style="min-height: 16.8px !important; line-height: 16.8px !important;">
         </div>
         <div class="crayon-plain-wrap">
          <textarea class="crayon-plain print-no" data-settings="dblclick" readonly="" style="-moz-tab-size:4; -o-tab-size:4; -webkit-tab-size:4; tab-size:4; font-size: 12px !important; line-height: 15px !important;" wrap="soft">
           &lt;span class="hljs-keyword"&gt;from&lt;/span&gt; sklearn &lt;span class="hljs-keyword"&gt;import&lt;/span&gt; datesets
&lt;span class="hljs-keyword"&gt;from&lt;/span&gt; sklearn.svm &lt;span class="hljs-keyword"&gt;import&lt;/span&gt; SVC
iris = datasets.load_iris()
clf =SVC()
clf.fit(iris.data,iris.target)
&lt;span class="hljs-keyword"&gt;print&lt;/span&gt; list(clf.predict(iris.data[:&lt;span class="hljs-number"&gt;3&lt;/span&gt;]))
clf.fit(iris.data,iris.target_names[iris.target])
&lt;span class="hljs-keyword"&gt;print&lt;/span&gt; list(clf.predict(iris.data[:&lt;span class="hljs-number"&gt;3&lt;/span&gt;]))
          </textarea>
         </div>
         <div class="crayon-main" style="">
          <table class="crayon-table">
           <tbody>
            <tr class="crayon-row">
             <td class="crayon-nums " data-settings="show">
              <div class="crayon-nums-content" style="font-size: 12px !important; line-height: 15px !important;">
               <div class="crayon-num" data-line="crayon-57685cbe83e08997068718-1">
                1
               </div>
               <div class="crayon-num crayon-striped-num" data-line="crayon-57685cbe83e08997068718-2">
                2
               </div>
               <div class="crayon-num" data-line="crayon-57685cbe83e08997068718-3">
                3
               </div>
               <div class="crayon-num crayon-striped-num" data-line="crayon-57685cbe83e08997068718-4">
                4
               </div>
               <div class="crayon-num" data-line="crayon-57685cbe83e08997068718-5">
                5
               </div>
               <div class="crayon-num crayon-striped-num" data-line="crayon-57685cbe83e08997068718-6">
                6
               </div>
               <div class="crayon-num" data-line="crayon-57685cbe83e08997068718-7">
                7
               </div>
               <div class="crayon-num crayon-striped-num" data-line="crayon-57685cbe83e08997068718-8">
                8
               </div>
              </div>
             </td>
             <td class="crayon-code">
              <div class="crayon-pre" style="font-size: 12px !important; line-height: 15px !important; -moz-tab-size:4; -o-tab-size:4; -webkit-tab-size:4; tab-size:4;">
               <div class="crayon-line" id="crayon-57685cbe83e08997068718-1">
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-e">
                 span
                </span>
                <span class="crayon-t">
                 class
                </span>
                <span class="crayon-o">
                 =
                </span>
                <span class="crayon-s">
                 "hljs-keyword"
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-v">
                 from
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-o">
                 /
                </span>
                <span class="crayon-v">
                 span
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-h">
                </span>
                <span class="crayon-v">
                 sklearn
                </span>
                <span class="crayon-h">
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-e">
                 span
                </span>
                <span class="crayon-t">
                 class
                </span>
                <span class="crayon-o">
                 =
                </span>
                <span class="crayon-s">
                 "hljs-keyword"
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-v">
                 import
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-o">
                 /
                </span>
                <span class="crayon-v">
                 span
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-h">
                </span>
                <span class="crayon-v">
                 datesets
                </span>
               </div>
               <div class="crayon-line crayon-striped-line" id="crayon-57685cbe83e08997068718-2">
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-e">
                 span
                </span>
                <span class="crayon-t">
                 class
                </span>
                <span class="crayon-o">
                 =
                </span>
                <span class="crayon-s">
                 "hljs-keyword"
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-v">
                 from
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-o">
                 /
                </span>
                <span class="crayon-v">
                 span
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-h">
                </span>
                <span class="crayon-v">
                 sklearn
                </span>
                <span class="crayon-sy">
                 .
                </span>
                <span class="crayon-v">
                 svm
                </span>
                <span class="crayon-h">
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-e">
                 span
                </span>
                <span class="crayon-t">
                 class
                </span>
                <span class="crayon-o">
                 =
                </span>
                <span class="crayon-s">
                 "hljs-keyword"
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-v">
                 import
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-o">
                 /
                </span>
                <span class="crayon-v">
                 span
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-h">
                </span>
                <span class="crayon-e">
                 SVC
                </span>
               </div>
               <div class="crayon-line" id="crayon-57685cbe83e08997068718-3">
                <span class="crayon-v">
                 iris
                </span>
                <span class="crayon-h">
                </span>
                <span class="crayon-o">
                 =
                </span>
                <span class="crayon-h">
                </span>
                <span class="crayon-v">
                 datasets
                </span>
                <span class="crayon-sy">
                 .
                </span>
                <span class="crayon-e">
                 load_iris
                </span>
                <span class="crayon-sy">
                 (
                </span>
                <span class="crayon-sy">
                 )
                </span>
               </div>
               <div class="crayon-line crayon-striped-line" id="crayon-57685cbe83e08997068718-4">
                <span class="crayon-v">
                 clf
                </span>
                <span class="crayon-h">
                </span>
                <span class="crayon-o">
                 =
                </span>
                <span class="crayon-e">
                 SVC
                </span>
                <span class="crayon-sy">
                 (
                </span>
                <span class="crayon-sy">
                 )
                </span>
               </div>
               <div class="crayon-line" id="crayon-57685cbe83e08997068718-5">
                <span class="crayon-v">
                 clf
                </span>
                <span class="crayon-sy">
                 .
                </span>
                <span class="crayon-e">
                 fit
                </span>
                <span class="crayon-sy">
                 (
                </span>
                <span class="crayon-v">
                 iris
                </span>
                <span class="crayon-sy">
                 .
                </span>
                <span class="crayon-v">
                 data
                </span>
                <span class="crayon-sy">
                 ,
                </span>
                <span class="crayon-v">
                 iris
                </span>
                <span class="crayon-sy">
                 .
                </span>
                <span class="crayon-v">
                 target
                </span>
                <span class="crayon-sy">
                 )
                </span>
               </div>
               <div class="crayon-line crayon-striped-line" id="crayon-57685cbe83e08997068718-6">
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-e">
                 span
                </span>
                <span class="crayon-t">
                 class
                </span>
                <span class="crayon-o">
                 =
                </span>
                <span class="crayon-s">
                 "hljs-keyword"
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-v">
                 print
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-o">
                 /
                </span>
                <span class="crayon-v">
                 span
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-h">
                </span>
                <span class="crayon-e">
                 list
                </span>
                <span class="crayon-sy">
                 (
                </span>
                <span class="crayon-v">
                 clf
                </span>
                <span class="crayon-sy">
                 .
                </span>
                <span class="crayon-e">
                 predict
                </span>
                <span class="crayon-sy">
                 (
                </span>
                <span class="crayon-v">
                 iris
                </span>
                <span class="crayon-sy">
                 .
                </span>
                <span class="crayon-v">
                 data
                </span>
                <span class="crayon-sy">
                 [
                </span>
                <span class="crayon-o">
                 :
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-e">
                 span
                </span>
                <span class="crayon-t">
                 class
                </span>
                <span class="crayon-o">
                 =
                </span>
                <span class="crayon-s">
                 "hljs-number"
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-cn">
                 3
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-o">
                 /
                </span>
                <span class="crayon-v">
                 span
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-sy">
                 ]
                </span>
                <span class="crayon-sy">
                 )
                </span>
                <span class="crayon-sy">
                 )
                </span>
               </div>
               <div class="crayon-line" id="crayon-57685cbe83e08997068718-7">
                <span class="crayon-v">
                 clf
                </span>
                <span class="crayon-sy">
                 .
                </span>
                <span class="crayon-e">
                 fit
                </span>
                <span class="crayon-sy">
                 (
                </span>
                <span class="crayon-v">
                 iris
                </span>
                <span class="crayon-sy">
                 .
                </span>
                <span class="crayon-v">
                 data
                </span>
                <span class="crayon-sy">
                 ,
                </span>
                <span class="crayon-v">
                 iris
                </span>
                <span class="crayon-sy">
                 .
                </span>
                <span class="crayon-v">
                 target_names
                </span>
                <span class="crayon-sy">
                 [
                </span>
                <span class="crayon-v">
                 iris
                </span>
                <span class="crayon-sy">
                 .
                </span>
                <span class="crayon-v">
                 target
                </span>
                <span class="crayon-sy">
                 ]
                </span>
                <span class="crayon-sy">
                 )
                </span>
               </div>
               <div class="crayon-line crayon-striped-line" id="crayon-57685cbe83e08997068718-8">
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-e">
                 span
                </span>
                <span class="crayon-t">
                 class
                </span>
                <span class="crayon-o">
                 =
                </span>
                <span class="crayon-s">
                 "hljs-keyword"
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-v">
                 print
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-o">
                 /
                </span>
                <span class="crayon-v">
                 span
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-h">
                </span>
                <span class="crayon-e">
                 list
                </span>
                <span class="crayon-sy">
                 (
                </span>
                <span class="crayon-v">
                 clf
                </span>
                <span class="crayon-sy">
                 .
                </span>
                <span class="crayon-e">
                 predict
                </span>
                <span class="crayon-sy">
                 (
                </span>
                <span class="crayon-v">
                 iris
                </span>
                <span class="crayon-sy">
                 .
                </span>
                <span class="crayon-v">
                 data
                </span>
                <span class="crayon-sy">
                 [
                </span>
                <span class="crayon-o">
                 :
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-e">
                 span
                </span>
                <span class="crayon-t">
                 class
                </span>
                <span class="crayon-o">
                 =
                </span>
                <span class="crayon-s">
                 "hljs-number"
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-cn">
                 3
                </span>
                <span class="crayon-o">
                 &lt;
                </span>
                <span class="crayon-o">
                 /
                </span>
                <span class="crayon-v">
                 span
                </span>
                <span class="crayon-o">
                 &gt;
                </span>
                <span class="crayon-sy">
                 ]
                </span>
                <span class="crayon-sy">
                 )
                </span>
                <span class="crayon-sy">
                 )
                </span>
               </div>
              </div>
             </td>
            </tr>
           </tbody>
          </table>
         </div>
        </div>
        <!-- [Format Time: 0.0164 seconds] -->
        <p>
        </p>
       </blockquote>
       <p>
        这里第一个predict()返回一个整数数组，是因为iris.target(一个整数数组)被用于拟合。第二个predict()返回一个字符串数组，因为iris.target_names被用于拟合。
       </p>
       <blockquote>
        <ul>
         <li>
          ②重拟合和更新参数
          <br/>
          一个拟合（评估）函数的混合参数（超参数）能够在通过sklearn.pipeline.Pipeline.set_params方法构造之后被更新。多次调用fit()能够覆写之前fit()学习的内容：
          <br/>
          <!-- Crayon Syntax Highlighter v_2.7.2_beta -->
          <div class="crayon-syntax crayon-theme-classic crayon-font-monaco crayon-os-pc print-yes notranslate" data-settings=" minimize scroll-mouseover" id="crayon-57685cbe83e0f247525836" style=" margin-top: 12px; margin-bottom: 12px; font-size: 12px !important; line-height: 15px !important;">
           <div class="crayon-toolbar" data-settings=" mouseover overlay hide delay" style="font-size: 12px !important;height: 18px !important; line-height: 18px !important;">
            <span class="crayon-title">
            </span>
            <div class="crayon-tools" style="font-size: 12px !important;height: 18px !important; line-height: 18px !important;">
             <div class="crayon-button crayon-nums-button" title="切换是否显示行编号">
              <div class="crayon-button-icon">
              </div>
             </div>
             <div class="crayon-button crayon-plain-button" title="纯文本显示代码">
              <div class="crayon-button-icon">
              </div>
             </div>
             <div class="crayon-button crayon-wrap-button" title="切换自动换行">
              <div class="crayon-button-icon">
              </div>
             </div>
             <div class="crayon-button crayon-expand-button" title="点击展开代码">
              <div class="crayon-button-icon">
              </div>
             </div>
             <div class="crayon-button crayon-copy-button" title="复制代码">
              <div class="crayon-button-icon">
              </div>
             </div>
             <div class="crayon-button crayon-popup-button" title="在新窗口中显示代码">
              <div class="crayon-button-icon">
              </div>
             </div>
            </div>
           </div>
           <div class="crayon-info" style="min-height: 16.8px !important; line-height: 16.8px !important;">
           </div>
           <div class="crayon-plain-wrap">
            <textarea class="crayon-plain print-no" data-settings="dblclick" readonly="" style="-moz-tab-size:4; -o-tab-size:4; -webkit-tab-size:4; tab-size:4; font-size: 12px !important; line-height: 15px !important;" wrap="soft">
             &lt;span class="hljs-keyword"&gt;import&lt;/span&gt; numpy &lt;span class="hljs-keyword"&gt;as&lt;/span&gt; np
&lt;span class="hljs-keyword"&gt;from&lt;/span&gt; sklearn.svm &lt;span class="hljs-keyword"&gt;import&lt;/span&gt; SVC
rng = np.random.RandomState(&lt;span class="hljs-number"&gt;0&lt;/span&gt;);
X = rng.rand(&lt;span class="hljs-number"&gt;100&lt;/span&gt;,&lt;span class="hljs-number"&gt;10&lt;/span&gt;)
Y = rng.binomial(&lt;span class="hljs-number"&gt;1&lt;/span&gt;,&lt;span class="hljs-number"&gt;0.5&lt;/span&gt;,&lt;span class="hljs-number"&gt;100&lt;/span&gt;)
X_test = rng.rand(&lt;span class="hljs-number"&gt;5&lt;/span&gt;,&lt;span class="hljs-number"&gt;10&lt;/span&gt;)
clf = SVC()
clf.set_params(kernel = &lt;span class="hljs-string"&gt;'linear'&lt;/span&gt;).fit(X,Y)
clf.predict(X_test)
clf.set_params(kernel=&lt;span class="hljs-string"&gt;'rbf'&lt;/span&gt;).fit(X,Y)
clf.predict(X_test)
            </textarea>
           </div>
           <div class="crayon-main" style="">
            <table class="crayon-table">
             <tbody>
              <tr class="crayon-row">
               <td class="crayon-nums " data-settings="show">
                <div class="crayon-nums-content" style="font-size: 12px !important; line-height: 15px !important;">
                 <div class="crayon-num" data-line="crayon-57685cbe83e0f247525836-1">
                  1
                 </div>
                 <div class="crayon-num crayon-striped-num" data-line="crayon-57685cbe83e0f247525836-2">
                  2
                 </div>
                 <div class="crayon-num" data-line="crayon-57685cbe83e0f247525836-3">
                  3
                 </div>
                 <div class="crayon-num crayon-striped-num" data-line="crayon-57685cbe83e0f247525836-4">
                  4
                 </div>
                 <div class="crayon-num" data-line="crayon-57685cbe83e0f247525836-5">
                  5
                 </div>
                 <div class="crayon-num crayon-striped-num" data-line="crayon-57685cbe83e0f247525836-6">
                  6
                 </div>
                 <div class="crayon-num" data-line="crayon-57685cbe83e0f247525836-7">
                  7
                 </div>
                 <div class="crayon-num crayon-striped-num" data-line="crayon-57685cbe83e0f247525836-8">
                  8
                 </div>
                 <div class="crayon-num" data-line="crayon-57685cbe83e0f247525836-9">
                  9
                 </div>
                 <div class="crayon-num crayon-striped-num" data-line="crayon-57685cbe83e0f247525836-10">
                  10
                 </div>
                 <div class="crayon-num" data-line="crayon-57685cbe83e0f247525836-11">
                  11
                 </div>
                </div>
               </td>
               <td class="crayon-code">
                <div class="crayon-pre" style="font-size: 12px !important; line-height: 15px !important; -moz-tab-size:4; -o-tab-size:4; -webkit-tab-size:4; tab-size:4;">
                 <div class="crayon-line" id="crayon-57685cbe83e0f247525836-1">
                  <span class="crayon-o">
                   &lt;
                  </span>
                  <span class="crayon-e">
                   span
                  </span>
                  <span class="crayon-t">
                   class
                  </span>
                  <span class="crayon-o">
                   =
                  </span>
                  <span class="crayon-s">
                   "hljs-keyword"
                  </span>
                  <span class="crayon-o">
                   &gt;
                  </span>
                  <span class="crayon-v">
                   import
                  </span>
                  <span class="crayon-o">
                   &lt;
                  </span>
                  <span class="crayon-o">
                   /
                  </span>
                  <span class="crayon-v">
                   span
                  </span>
                  <span class="crayon-o">
                   &gt;
                  </span>
                  <span class="crayon-h">
                  </span>
                  <span class="crayon-v">
                   numpy
                  </span>
                  <span class="crayon-h">
                  </span>
                  <span class="crayon-o">
                   &lt;
                  </span>
                  <span class="crayon-e">
                   span
                  </span>
                  <span class="crayon-t">
                   class
                  </span>
                  <span class="crayon-o">
                   =
                  </span>
                  <span class="crayon-s">
                   "hljs-keyword"
                  </span>
                  <span class="crayon-o">
                   &gt;
                  </span>
                  <span class="crayon-st">
                   as
                  </span>
                  <span class="crayon-o">
                   &lt;
                  </span>
                  <span class="crayon-o">
                   /
                  </span>
                  <span class="crayon-v">
                   span
                  </span>
                  <span class="crayon-o">
                   &gt;
                  </span>
                  <span class="crayon-h">
                  </span>
                  <span class="crayon-v">
                   np
                  </span>
                 </div>
                 <div class="crayon-line crayon-striped-line" id="crayon-57685cbe83e0f247525836-2">
                  <span class="crayon-o">
                   &lt;
                  </span>
                  <span class="crayon-e">
                   span
                  </span>
                  <span class="crayon-t">
                   class
                  </span>
                  <span class="crayon-o">
                   =
                  </span>
                  <span class="crayon-s">
                   "hljs-keyword"
                  </span>
                  <span class="crayon-o">
                   &gt;
                  </span>
                  <span class="crayon-v">
                   from
                  </span>
                  <span class="crayon-o">
                   &lt;
                  </span>
                  <span class="crayon-o">
                   /
                  </span>
                  <span class="crayon-v">
                   span
                  </span>
                  <span class="crayon-o">
                   &gt;
                  </span>
                  <span class="crayon-h">
                  </span>
                  <span class="crayon-v">
                   sklearn
                  </span>
                  <span class="crayon-sy">
                   .
                  </span>
                  <span class="crayon-v">
                   svm
                  </span>
                  <span class="crayon-h">
                  </span>
                  <span class="crayon-o">
                   &lt;
                  </span>
                  <span class="crayon-e">
                   span
                  </span>
                  <span class="crayon-t">
                   class
                  </span>
                  <span class="crayon-o">
                   =
                  </span>
                  <span class="crayon-s">
                   "hljs-keyword"
                  </span>
                  <span class="crayon-o">
                   &gt;
                  </span>
                  <span class="crayon-v">
                   import
                  </span>
                  <span class="crayon-o">
                   &lt;
                  </span>
                  <span class="crayon-o">
                   /
                  </span>
                  <span class="crayon-v">
                   span
                  </span>
                  <span class="crayon-o">
                   &gt;
                  </span>
                  <span class="crayon-h">
                  </span>
                  <span class="crayon-e">
                   SVC
                  </span>
                 </div>
                 <div class="crayon-line" id="crayon-57685cbe83e0f247525836-3">
                  <span class="crayon-v">
                   rng
                  </span>
                  <span class="crayon-h">
                  </span>
                  <span class="crayon-o">
                   =
                  </span>
                  <span class="crayon-h">
                  </span>
                  <span class="crayon-v">
                   np
                  </span>
                  <span class="crayon-sy">
                   .
                  </span>
                  <span class="crayon-v">
                   random
                  </span>
                  <span class="crayon-sy">
                   .
                  </span>
                  <span class="crayon-e">
                   RandomState
                  </span>
                  <span class="crayon-sy">
                   (
                  </span>
                  <span class="crayon-o">
                   &lt;
                  </span>
                  <span class="crayon-e">
                   span
                  </span>
                  <span class="crayon-t">
                   class
                  </span>
                  <span class="crayon-o">
                   =
                  </span>
                  <span class="crayon-s">
                   "hljs-number"
                  </span>
                  <span class="crayon-o">
                   &gt;
                  </span>
                  <span class="crayon-cn">
                   0
                  </span>
                  <span class="crayon-o">
                   &lt;
                  </span>
                  <span class="crayon-o">
                   /
                  </span>
                  <span class="crayon-v">
                   span
                  </span>
                  <span class="crayon-o">
                   &gt;
                  </span>
                  <span class="crayon-sy">
                   )
                  </span>
                  <span class="crayon-sy">
                   ;
                  </span>
                 </div>
                 <div class="crayon-line crayon-striped-line" id="crayon-57685cbe83e0f247525836-4">
                  <span class="crayon-v">
                   X
                  </span>
                  <span class="crayon-h">
                  </span>
                  <span class="crayon-o">
                   =
                  </span>
                  <span class="crayon-h">
                  </span>
                  <span class="crayon-v">
                   rng
                  </span>
                  <span class="crayon-sy">
                   .
                  </span>
                  <span class="crayon-e">
                   rand
                  </span>
                  <span class="crayon-sy">
                   (
                  </span>
                  <span class="crayon-o">
                   &lt;
                  </span>
                  <span class="crayon-e">
                   span
                  </span>
                  <span class="crayon-t">
                   class
                  </span>
                  <span class="crayon-o">
                   =
                  </span>
                  <span class="crayon-s">
                   "hljs-number"
                  </span>
                  <span class="crayon-o">
                   &gt;
                  </span>
                  <span class="crayon-cn">
                   100
                  </span>
                  <span class="crayon-o">
                   &lt;
                  </span>
                  <span class="crayon-o">
                   /
                  </span>
                  <span class="crayon-v">
                   span
                  </span>
                  <span class="crayon-o">
                   &gt;
                  </span>
                  <span class="crayon-sy">
                   ,
                  </span>
                  <span class="crayon-o">
                   &lt;
                  </span>
                  <span class="crayon-e">
                   span
                  </span>
                  <span class="crayon-t">
                   class
                  </span>
                  <span class="crayon-o">
                   =
                  </span>
                  <span class="crayon-s">
                   "hljs-number"
                  </span>
                  <span class="crayon-o">
                   &gt;
                  </span>
                  <span class="crayon-cn">
                   10
                  </span>
                  <span class="crayon-o">
                   &lt;
                  </span>
                  <span class="crayon-o">
                   /
                  </span>
                  <span class="crayon-v">
                   span
                  </span>
                  <span class="crayon-o">
                   &gt;
                  </span>
                  <span class="crayon-sy">
                   )
                  </span>
                 </div>
                 <div class="crayon-line" id="crayon-57685cbe83e0f247525836-5">
                  <span class="crayon-v">
                   Y
                  </span>
                  <span class="crayon-h">
                  </span>
                  <span class="crayon-o">
                   =
                  </span>
                  <span class="crayon-h">
                  </span>
                  <span class="crayon-v">
                   rng
                  </span>
                  <span class="crayon-sy">
                   .
                  </span>
                  <span class="crayon-e">
                   binomial
                  </span>
                  <span class="crayon-sy">
                   (
                  </span>
                  <span class="crayon-o">
                   &lt;
                  </span>
                  <span class="crayon-e">
                   span
                  </span>
                  <span class="crayon-t">
                   class
                  </span>
                  <span class="crayon-o">
                   =
                  </span>
                  <span class="crayon-s">
                   "hljs-number"
                  </span>
                  <span class="crayon-o">
                   &gt;
                  </span>
                  <span class="crayon-cn">
                   1
                  </span>
                  <span class="crayon-o">
                   &lt;
                  </span>
                  <span class="crayon-o">
                   /
                  </span>
                  <span class="crayon-v">
                   span
                  </span>
                  <span class="crayon-o">
                   &gt;
                  </span>
                  <span class="crayon-sy">
                   ,
                  </span>
                  <span class="crayon-o">
                   &lt;
                  </span>
                  <span class="crayon-e">
                   span
                  </span>
                  <span class="crayon-t">
                   class
                  </span>
                  <span class="crayon-o">
                   =
                  </span>
                  <span class="crayon-s">
                   "hljs-number"
                  </span>
                  <span class="crayon-o">
                   &gt;
                  </span>
                  <span class="crayon-cn">
                   0.5
                  </span>
                  <span class="crayon-o">
                   &lt;
                  </span>
                  <span class="crayon-o">
                   /
                  </span>
                  <span class="crayon-v">
                   span
                  </span>
                  <span class="crayon-o">
                   &gt;
                  </span>
                  <span class="crayon-sy">
                   ,
                  </span>
                  <span class="crayon-o">
                   &lt;
                  </span>
                  <span class="crayon-e">
                   span
                  </span>
                  <span class="crayon-t">
                   class
                  </span>
                  <span class="crayon-o">
                   =
                  </span>
                  <span class="crayon-s">
                   "hljs-number"
                  </span>
                  <span class="crayon-o">
                   &gt;
                  </span>
                  <span class="crayon-cn">
                   100
                  </span>
                  <span class="crayon-o">
                   &lt;
                  </span>
                  <span class="crayon-o">
                   /
                  </span>
                  <span class="crayon-v">
                   span
                  </span>
                  <span class="crayon-o">
                   &gt;
                  </span>
                  <span class="crayon-sy">
                   )
                  </span>
                 </div>
                 <div class="crayon-line crayon-striped-line" id="crayon-57685cbe83e0f247525836-6">
                  <span class="crayon-v">
                   X_test
                  </span>
                  <span class="crayon-h">
                  </span>
                  <span class="crayon-o">
                   =
                  </span>
                  <span class="crayon-h">
                  </span>
                  <span class="crayon-v">
                   rng
                  </span>
                  <span class="crayon-sy">
                   .
                  </span>
                  <span class="crayon-e">
                   rand
                  </span>
                  <span class="crayon-sy">
                   (
                  </span>
                  <span class="crayon-o">
                   &lt;
                  </span>
                  <span class="crayon-e">
                   span
                  </span>
                  <span class="crayon-t">
                   class
                  </span>
                  <span class="crayon-o">
                   =
                  </span>
                  <span class="crayon-s">
                   "hljs-number"
                  </span>
                  <span class="crayon-o">
                   &gt;
                  </span>
                  <span class="crayon-cn">
                   5
                  </span>
                  <span class="crayon-o">
                   &lt;
                  </span>
                  <span class="crayon-o">
                   /
                  </span>
                  <span class="crayon-v">
                   span
                  </span>
                  <span class="crayon-o">
                   &gt;
                  </span>
                  <span class="crayon-sy">
                   ,
                  </span>
                  <span class="crayon-o">
                   &lt;
                  </span>
                  <span class="crayon-e">
                   span
                  </span>
                  <span class="crayon-t">
                   class
                  </span>
                  <span class="crayon-o">
                   =
                  </span>
                  <span class="crayon-s">
                   "hljs-number"
                  </span>
                  <span class="crayon-o">
                   &gt;
                  </span>
                  <span class="crayon-cn">
                   10
                  </span>
                  <span class="crayon-o">
                   &lt;
                  </span>
                  <span class="crayon-o">
                   /
                  </span>
                  <span class="crayon-v">
                   span
                  </span>
                  <span class="crayon-o">
                   &gt;
                  </span>
                  <span class="crayon-sy">
                   )
                  </span>
                 </div>
                 <div class="crayon-line" id="crayon-57685cbe83e0f247525836-7">
                  <span class="crayon-v">
                   clf
                  </span>
                  <span class="crayon-h">
                  </span>
                  <span class="crayon-o">
                   =
                  </span>
                  <span class="crayon-h">
                  </span>
                  <span class="crayon-e">
                   SVC
                  </span>
                  <span class="crayon-sy">
                   (
                  </span>
                  <span class="crayon-sy">
                   )
                  </span>
                 </div>
                 <div class="crayon-line crayon-striped-line" id="crayon-57685cbe83e0f247525836-8">
                  <span class="crayon-v">
                   clf
                  </span>
                  <span class="crayon-sy">
                   .
                  </span>
                  <span class="crayon-e">
                   set_params
                  </span>
                  <span class="crayon-sy">
                   (
                  </span>
                  <span class="crayon-v">
                   kernel
                  </span>
                  <span class="crayon-h">
                  </span>
                  <span class="crayon-o">
                   =
                  </span>
                  <span class="crayon-h">
                  </span>
                  <span class="crayon-o">
                   &lt;
                  </span>
                  <span class="crayon-e">
                   span
                  </span>
                  <span class="crayon-t">
                   class
                  </span>
                  <span class="crayon-o">
                   =
                  </span>
                  <span class="crayon-s">
                   "hljs-string"
                  </span>
                  <span class="crayon-o">
                   &gt;
                  </span>
                  <span class="crayon-s">
                   'linear'
                  </span>
                  <span class="crayon-o">
                   &lt;
                  </span>
                  <span class="crayon-o">
                   /
                  </span>
                  <span class="crayon-v">
                   span
                  </span>
                  <span class="crayon-o">
                   &gt;
                  </span>
                  <span class="crayon-sy">
                   )
                  </span>
                  <span class="crayon-sy">
                   .
                  </span>
                  <span class="crayon-e">
                   fit
                  </span>
                  <span class="crayon-sy">
                   (
                  </span>
                  <span class="crayon-v">
                   X
                  </span>
                  <span class="crayon-sy">
                   ,
                  </span>
                  <span class="crayon-v">
                   Y
                  </span>
                  <span class="crayon-sy">
                   )
                  </span>
                 </div>
                 <div class="crayon-line" id="crayon-57685cbe83e0f247525836-9">
                  <span class="crayon-v">
                   clf
                  </span>
                  <span class="crayon-sy">
                   .
                  </span>
                  <span class="crayon-e">
                   predict
                  </span>
                  <span class="crayon-sy">
                   (
                  </span>
                  <span class="crayon-v">
                   X_test
                  </span>
                  <span class="crayon-sy">
                   )
                  </span>
                 </div>
                 <div class="crayon-line crayon-striped-line" id="crayon-57685cbe83e0f247525836-10">
                  <span class="crayon-v">
                   clf
                  </span>
                  <span class="crayon-sy">
                   .
                  </span>
                  <span class="crayon-e">
                   set_params
                  </span>
                  <span class="crayon-sy">
                   (
                  </span>
                  <span class="crayon-v">
                   kernel
                  </span>
                  <span class="crayon-o">
                   =
                  </span>
                  <span class="crayon-o">
                   &lt;
                  </span>
                  <span class="crayon-e">
                   span
                  </span>
                  <span class="crayon-t">
                   class
                  </span>
                  <span class="crayon-o">
                   =
                  </span>
                  <span class="crayon-s">
                   "hljs-string"
                  </span>
                  <span class="crayon-o">
                   &gt;
                  </span>
                  <span class="crayon-s">
                   'rbf'
                  </span>
                  <span class="crayon-o">
                   &lt;
                  </span>
                  <span class="crayon-o">
                   /
                  </span>
                  <span class="crayon-v">
                   span
                  </span>
                  <span class="crayon-o">
                   &gt;
                  </span>
                  <span class="crayon-sy">
                   )
                  </span>
                  <span class="crayon-sy">
                   .
                  </span>
                  <span class="crayon-e">
                   fit
                  </span>
                  <span class="crayon-sy">
                   (
                  </span>
                  <span class="crayon-v">
                   X
                  </span>
                  <span class="crayon-sy">
                   ,
                  </span>
                  <span class="crayon-v">
                   Y
                  </span>
                  <span class="crayon-sy">
                   )
                  </span>
                 </div>
                 <div class="crayon-line" id="crayon-57685cbe83e0f247525836-11">
                  <span class="crayon-v">
                   clf
                  </span>
                  <span class="crayon-sy">
                   .
                  </span>
                  <span class="crayon-e">
                   predict
                  </span>
                  <span class="crayon-sy">
                   (
                  </span>
                  <span class="crayon-v">
                   X_test
                  </span>
                  <span class="crayon-sy">
                   )
                  </span>
                  <span class="crayon-h">
                  </span>
                 </div>
                </div>
               </td>
              </tr>
             </tbody>
            </table>
           </div>
          </div>
          <!-- [Format Time: 0.0293 seconds] -->
          <br/>
          这里,用SVC()构造之后，开始拟合（评估）函数默认的’rbf’核被改编成’linear’，后来又改回’rbf’去重拟合做第二次的预测。
         </li>
        </ul>
       </blockquote>
       <h2>
        附：
       </h2>
       <blockquote>
        <ul>
         <li>
          ①digits数据集：一个展示怎样用scikit-learn识别手写数字的样例:绘制数字：
          <br/>
          <!-- Crayon Syntax Highlighter v_2.7.2_beta -->
          <div class="crayon-syntax crayon-theme-classic crayon-font-monaco crayon-os-pc print-yes notranslate" data-settings=" minimize scroll-mouseover" id="crayon-57685cbe83e15805876676" style=" margin-top: 12px; margin-bottom: 12px; font-size: 12px !important; line-height: 15px !important;">
           <div class="crayon-toolbar" data-settings=" mouseover overlay hide delay" style="font-size: 12px !important;height: 18px !important; line-height: 18px !important;">
            <span class="crayon-title">
            </span>
            <div class="crayon-tools" style="font-size: 12px !important;height: 18px !important; line-height: 18px !important;">
             <div class="crayon-button crayon-nums-button" title="切换是否显示行编号">
              <div class="crayon-button-icon">
              </div>
             </div>
             <div class="crayon-button crayon-plain-button" title="纯文本显示代码">
              <div class="crayon-button-icon">
              </div>
             </div>
             <div class="crayon-button crayon-wrap-button" title="切换自动换行">
              <div class="crayon-button-icon">
              </div>
             </div>
             <div class="crayon-button crayon-expand-button" title="点击展开代码">
              <div class="crayon-button-icon">
              </div>
             </div>
             <div class="crayon-button crayon-copy-button" title="复制代码">
              <div class="crayon-button-icon">
              </div>
             </div>
             <div class="crayon-button crayon-popup-button" title="在新窗口中显示代码">
              <div class="crayon-button-icon">
              </div>
             </div>
            </div>
           </div>
           <div class="crayon-info" style="min-height: 16.8px !important; line-height: 16.8px !important;">
           </div>
           <div class="crayon-plain-wrap">
            <textarea class="crayon-plain print-no" data-settings="dblclick" readonly="" style="-moz-tab-size:4; -o-tab-size:4; -webkit-tab-size:4; tab-size:4; font-size: 12px !important; line-height: 15px !important;" wrap="soft">
             &lt;span class="hljs-comment"&gt;# Code source: Gaël Varoquaux&lt;/span&gt;
&lt;span class="hljs-comment"&gt;# Modified for documentation by Jaques Grobler&lt;/span&gt;
&lt;span class="hljs-comment"&gt;# License: BSD 3 clause&lt;/span&gt;
&lt;span class="hljs-keyword"&gt;from&lt;/span&gt; sklearn &lt;span class="hljs-keyword"&gt;import&lt;/span&gt; datasets
&lt;span class="hljs-keyword"&gt;import&lt;/span&gt; matplotlib.pyplot &lt;span class="hljs-keyword"&gt;as&lt;/span&gt; plt
&lt;span class="hljs-comment"&gt;#Load the digits dataset&lt;/span&gt;
digits = datasets.load_digits()
&lt;span class="hljs-comment"&gt;#Display the first digit&lt;/span&gt;
plt.figure(&lt;span class="hljs-number"&gt;1&lt;/span&gt;, figsize=(&lt;span class="hljs-number"&gt;3&lt;/span&gt;, &lt;span class="hljs-number"&gt;3&lt;/span&gt;))
plt.imshow(digits.images[-&lt;span class="hljs-number"&gt;1&lt;/span&gt;], cmap=plt.cm.gray_r, interpolation=&lt;span class="hljs-string"&gt;'nearest'&lt;/span&gt;)
plt.show()
            </textarea>
           </div>
           <div class="crayon-main" style="">
            <table class="crayon-table">
             <tbody>
              <tr class="crayon-row">
               <td class="crayon-nums " data-settings="show">
                <div class="crayon-nums-content" style="font-size: 12px !important; line-height: 15px !important;">
                 <div class="crayon-num" data-line="crayon-57685cbe83e15805876676-1">
                  1
                 </div>
                 <div class="crayon-num crayon-striped-num" data-line="crayon-57685cbe83e15805876676-2">
                  2
                 </div>
                 <div class="crayon-num" data-line="crayon-57685cbe83e15805876676-3">
                  3
                 </div>
                 <div class="crayon-num crayon-striped-num" data-line="crayon-57685cbe83e15805876676-4">
                  4
                 </div>
                 <div class="crayon-num" data-line="crayon-57685cbe83e15805876676-5">
                  5
                 </div>
                 <div class="crayon-num crayon-striped-num" data-line="crayon-57685cbe83e15805876676-6">
                  6
                 </div>
                 <div class="crayon-num" data-line="crayon-57685cbe83e15805876676-7">
                  7
                 </div>
                 <div class="crayon-num crayon-striped-num" data-line="crayon-57685cbe83e15805876676-8">
                  8
                 </div>
                 <div class="crayon-num" data-line="crayon-57685cbe83e15805876676-9">
                  9
                 </div>
                 <div class="crayon-num crayon-striped-num" data-line="crayon-57685cbe83e15805876676-10">
                  10
                 </div>
                 <div class="crayon-num" data-line="crayon-57685cbe83e15805876676-11">
                  11
                 </div>
                </div>
               </td>
               <td class="crayon-code">
                <div class="crayon-pre" style="font-size: 12px !important; line-height: 15px !important; -moz-tab-size:4; -o-tab-size:4; -webkit-tab-size:4; tab-size:4;">
                 <div class="crayon-line" id="crayon-57685cbe83e15805876676-1">
                  <span class="crayon-o">
                   &lt;
                  </span>
                  <span class="crayon-e">
                   span
                  </span>
                  <span class="crayon-t">
                   class
                  </span>
                  <span class="crayon-o">
                   =
                  </span>
                  <span class="crayon-s">
                   "hljs-comment"
                  </span>
                  <span class="crayon-o">
                   &gt;
                  </span>
                  <span class="crayon-p">
                   # Code source: Gaël Varoquaux&lt;/span&gt;
                  </span>
                 </div>
                 <div class="crayon-line crayon-striped-line" id="crayon-57685cbe83e15805876676-2">
                  <span class="crayon-o">
                   &lt;
                  </span>
                  <span class="crayon-e">
                   span
                  </span>
                  <span class="crayon-t">
                   class
                  </span>
                  <span class="crayon-o">
                   =
                  </span>
                  <span class="crayon-s">
                   "hljs-comment"
                  </span>
                  <span class="crayon-o">
                   &gt;
                  </span>
                  <span class="crayon-p">
                   # Modified for documentation by Jaques Grobler&lt;/span&gt;
                  </span>
                 </div>
                 <div class="crayon-line" id="crayon-57685cbe83e15805876676-3">
                  <span class="crayon-o">
                   &lt;
                  </span>
                  <span class="crayon-e">
                   span
                  </span>
                  <span class="crayon-t">
                   class
                  </span>
                  <span class="crayon-o">
                   =
                  </span>
                  <span class="crayon-s">
                   "hljs-comment"
                  </span>
                  <span class="crayon-o">
                   &gt;
                  </span>
                  <span class="crayon-p">
                   # License: BSD 3 clause&lt;/span&gt;
                  </span>
                 </div>
                 <div class="crayon-line crayon-striped-line" id="crayon-57685cbe83e15805876676-4">
                  <span class="crayon-o">
                   &lt;
                  </span>
                  <span class="crayon-e">
                   span
                  </span>
                  <span class="crayon-t">
                   class
                  </span>
                  <span class="crayon-o">
                   =
                  </span>
                  <span class="crayon-s">
                   "hljs-keyword"
                  </span>
                  <span class="crayon-o">
                   &gt;
                  </span>
                  <span class="crayon-v">
                   from
                  </span>
                  <span class="crayon-o">
                   &lt;
                  </span>
                  <span class="crayon-o">
                   /
                  </span>
                  <span class="crayon-v">
                   span
                  </span>
                  <span class="crayon-o">
                   &gt;
                  </span>
                  <span class="crayon-h">
                  </span>
                  <span class="crayon-v">
                   sklearn
                  </span>
                  <span class="crayon-h">
                  </span>
                  <span class="crayon-o">
                   &lt;
                  </span>
                  <span class="crayon-e">
                   span
                  </span>
                  <span class="crayon-t">
                   class
                  </span>
                  <span class="crayon-o">
                   =
                  </span>
                  <span class="crayon-s">
                   "hljs-keyword"
                  </span>
                  <span class="crayon-o">
                   &gt;
                  </span>
                  <span class="crayon-v">
                   import
                  </span>
                  <span class="crayon-o">
                   &lt;
                  </span>
                  <span class="crayon-o">
                   /
                  </span>
                  <span class="crayon-v">
                   span
                  </span>
                  <span class="crayon-o">
                   &gt;
                  </span>
                  <span class="crayon-h">
                  </span>
                  <span class="crayon-v">
                   datasets
                  </span>
                 </div>
                 <div class="crayon-line" id="crayon-57685cbe83e15805876676-5">
                  <span class="crayon-o">
                   &lt;
                  </span>
                  <span class="crayon-e">
                   span
                  </span>
                  <span class="crayon-t">
                   class
                  </span>
                  <span class="crayon-o">
                   =
                  </span>
                  <span class="crayon-s">
                   "hljs-keyword"
                  </span>
                  <span class="crayon-o">
                   &gt;
                  </span>
                  <span class="crayon-v">
                   import
                  </span>
                  <span class="crayon-o">
                   &lt;
                  </span>
                  <span class="crayon-o">
                   /
                  </span>
                  <span class="crayon-v">
                   span
                  </span>
                  <span class="crayon-o">
                   &gt;
                  </span>
                  <span class="crayon-h">
                  </span>
                  <span class="crayon-v">
                   matplotlib
                  </span>
                  <span class="crayon-sy">
                   .
                  </span>
                  <span class="crayon-v">
                   pyplot
                  </span>
                  <span class="crayon-h">
                  </span>
                  <span class="crayon-o">
                   &lt;
                  </span>
                  <span class="crayon-e">
                   span
                  </span>
                  <span class="crayon-t">
                   class
                  </span>
                  <span class="crayon-o">
                   =
                  </span>
                  <span class="crayon-s">
                   "hljs-keyword"
                  </span>
                  <span class="crayon-o">
                   &gt;
                  </span>
                  <span class="crayon-st">
                   as
                  </span>
                  <span class="crayon-o">
                   &lt;
                  </span>
                  <span class="crayon-o">
                   /
                  </span>
                  <span class="crayon-v">
                   span
                  </span>
                  <span class="crayon-o">
                   &gt;
                  </span>
                  <span class="crayon-h">
                  </span>
                  <span class="crayon-v">
                   plt
                  </span>
                 </div>
                 <div class="crayon-line crayon-striped-line" id="crayon-57685cbe83e15805876676-6">
                  <span class="crayon-o">
                   &lt;
                  </span>
                  <span class="crayon-e">
                   span
                  </span>
                  <span class="crayon-t">
                   class
                  </span>
                  <span class="crayon-o">
                   =
                  </span>
                  <span class="crayon-s">
                   "hljs-comment"
                  </span>
                  <span class="crayon-o">
                   &gt;
                  </span>
                  <span class="crayon-p">
                   #Load the digits dataset&lt;/span&gt;
                  </span>
                 </div>
                 <div class="crayon-line" id="crayon-57685cbe83e15805876676-7">
                  <span class="crayon-v">
                   digits
                  </span>
                  <span class="crayon-h">
                  </span>
                  <span class="crayon-o">
                   =
                  </span>
                  <span class="crayon-h">
                  </span>
                  <span class="crayon-v">
                   datasets
                  </span>
                  <span class="crayon-sy">
                   .
                  </span>
                  <span class="crayon-e">
                   load_digits
                  </span>
                  <span class="crayon-sy">
                   (
                  </span>
                  <span class="crayon-sy">
                   )
                  </span>
                 </div>
                 <div class="crayon-line crayon-striped-line" id="crayon-57685cbe83e15805876676-8">
                  <span class="crayon-o">
                   &lt;
                  </span>
                  <span class="crayon-e">
                   span
                  </span>
                  <span class="crayon-t">
                   class
                  </span>
                  <span class="crayon-o">
                   =
                  </span>
                  <span class="crayon-s">
                   "hljs-comment"
                  </span>
                  <span class="crayon-o">
                   &gt;
                  </span>
                  <span class="crayon-p">
                   #Display the first digit&lt;/span&gt;
                  </span>
                 </div>
                 <div class="crayon-line" id="crayon-57685cbe83e15805876676-9">
                  <span class="crayon-v">
                   plt
                  </span>
                  <span class="crayon-sy">
                   .
                  </span>
                  <span class="crayon-e">
                   figure
                  </span>
                  <span class="crayon-sy">
                   (
                  </span>
                  <span class="crayon-o">
                   &lt;
                  </span>
                  <span class="crayon-e">
                   span
                  </span>
                  <span class="crayon-t">
                   class
                  </span>
                  <span class="crayon-o">
                   =
                  </span>
                  <span class="crayon-s">
                   "hljs-number"
                  </span>
                  <span class="crayon-o">
                   &gt;
                  </span>
                  <span class="crayon-cn">
                   1
                  </span>
                  <span class="crayon-o">
                   &lt;
                  </span>
                  <span class="crayon-o">
                   /
                  </span>
                  <span class="crayon-v">
                   span
                  </span>
                  <span class="crayon-o">
                   &gt;
                  </span>
                  <span class="crayon-sy">
                   ,
                  </span>
                  <span class="crayon-h">
                  </span>
                  <span class="crayon-v">
                   figsize
                  </span>
                  <span class="crayon-o">
                   =
                  </span>
                  <span class="crayon-sy">
                   (
                  </span>
                  <span class="crayon-o">
                   &lt;
                  </span>
                  <span class="crayon-e">
                   span
                  </span>
                  <span class="crayon-t">
                   class
                  </span>
                  <span class="crayon-o">
                   =
                  </span>
                  <span class="crayon-s">
                   "hljs-number"
                  </span>
                  <span class="crayon-o">
                   &gt;
                  </span>
                  <span class="crayon-cn">
                   3
                  </span>
                  <span class="crayon-o">
                   &lt;
                  </span>
                  <span class="crayon-o">
                   /
                  </span>
                  <span class="crayon-v">
                   span
                  </span>
                  <span class="crayon-o">
                   &gt;
                  </span>
                  <span class="crayon-sy">
                   ,
                  </span>
                  <span class="crayon-h">
                  </span>
                  <span class="crayon-o">
                   &lt;
                  </span>
                  <span class="crayon-e">
                   span
                  </span>
                  <span class="crayon-t">
                   class
                  </span>
                  <span class="crayon-o">
                   =
                  </span>
                  <span class="crayon-s">
                   "hljs-number"
                  </span>
                  <span class="crayon-o">
                   &gt;
                  </span>
                  <span class="crayon-cn">
                   3
                  </span>
                  <span class="crayon-o">
                   &lt;
                  </span>
                  <span class="crayon-o">
                   /
                  </span>
                  <span class="crayon-v">
                   span
                  </span>
                  <span class="crayon-o">
                   &gt;
                  </span>
                  <span class="crayon-sy">
                   )
                  </span>
                  <span class="crayon-sy">
                   )
                  </span>
                 </div>
                 <div class="crayon-line crayon-striped-line" id="crayon-57685cbe83e15805876676-10">
                  <span class="crayon-v">
                   plt
                  </span>
                  <span class="crayon-sy">
                   .
                  </span>
                  <span class="crayon-e">
                   imshow
                  </span>
                  <span class="crayon-sy">
                   (
                  </span>
                  <span class="crayon-v">
                   digits
                  </span>
                  <span class="crayon-sy">
                   .
                  </span>
                  <span class="crayon-v">
                   images
                  </span>
                  <span class="crayon-sy">
                   [
                  </span>
                  <span class="crayon-o">
                   -
                  </span>
                  <span class="crayon-o">
                   &lt;
                  </span>
                  <span class="crayon-e">
                   span
                  </span>
                  <span class="crayon-t">
                   class
                  </span>
                  <span class="crayon-o">
                   =
                  </span>
                  <span class="crayon-s">
                   "hljs-number"
                  </span>
                  <span class="crayon-o">
                   &gt;
                  </span>
                  <span class="crayon-cn">
                   1
                  </span>
                  <span class="crayon-o">
                   &lt;
                  </span>
                  <span class="crayon-o">
                   /
                  </span>
                  <span class="crayon-v">
                   span
                  </span>
                  <span class="crayon-o">
                   &gt;
                  </span>
                  <span class="crayon-sy">
                   ]
                  </span>
                  <span class="crayon-sy">
                   ,
                  </span>
                  <span class="crayon-h">
                  </span>
                  <span class="crayon-v">
                   cmap
                  </span>
                  <span class="crayon-o">
                   =
                  </span>
                  <span class="crayon-v">
                   plt
                  </span>
                  <span class="crayon-sy">
                   .
                  </span>
                  <span class="crayon-v">
                   cm
                  </span>
                  <span class="crayon-sy">
                   .
                  </span>
                  <span class="crayon-v">
                   gray_r
                  </span>
                  <span class="crayon-sy">
                   ,
                  </span>
                  <span class="crayon-h">
                  </span>
                  <span class="crayon-v">
                   interpolation
                  </span>
                  <span class="crayon-o">
                   =
                  </span>
                  <span class="crayon-o">
                   &lt;
                  </span>
                  <span class="crayon-e">
                   span
                  </span>
                  <span class="crayon-t">
                   class
                  </span>
                  <span class="crayon-o">
                   =
                  </span>
                  <span class="crayon-s">
                   "hljs-string"
                  </span>
                  <span class="crayon-o">
                   &gt;
                  </span>
                  <span class="crayon-s">
                   'nearest'
                  </span>
                  <span class="crayon-o">
                   &lt;
                  </span>
                  <span class="crayon-o">
                   /
                  </span>
                  <span class="crayon-v">
                   span
                  </span>
                  <span class="crayon-o">
                   &gt;
                  </span>
                  <span class="crayon-sy">
                   )
                  </span>
                 </div>
                 <div class="crayon-line" id="crayon-57685cbe83e15805876676-11">
                  <span class="crayon-v">
                   plt
                  </span>
                  <span class="crayon-sy">
                   .
                  </span>
                  <span class="crayon-e">
                   show
                  </span>
                  <span class="crayon-sy">
                   (
                  </span>
                  <span class="crayon-sy">
                   )
                  </span>
                 </div>
                </div>
               </td>
              </tr>
             </tbody>
            </table>
           </div>
          </div>
          <!-- [Format Time: 0.0184 seconds] -->
          <br/>
          <img src="http://dataunion.org/wp-content/uploads/2015/06/plot_digits_classification_001.png"/>
         </li>
         <li>
          ②绘制数字分类 （plot_digits_classification.py）
          <br/>
          <!-- Crayon Syntax Highlighter v_2.7.2_beta -->
          <div class="crayon-syntax crayon-theme-classic crayon-font-monaco crayon-os-pc print-yes notranslate" data-settings=" minimize scroll-mouseover" id="crayon-57685cbe83e1c324969911" style=" margin-top: 12px; margin-bottom: 12px; font-size: 12px !important; line-height: 15px !important;">
           <div class="crayon-toolbar" data-settings=" mouseover overlay hide delay" style="font-size: 12px !important;height: 18px !important; line-height: 18px !important;">
            <span class="crayon-title">
            </span>
            <div class="crayon-tools" style="font-size: 12px !important;height: 18px !important; line-height: 18px !important;">
             <div class="crayon-button crayon-nums-button" title="切换是否显示行编号">
              <div class="crayon-button-icon">
              </div>
             </div>
             <div class="crayon-button crayon-plain-button" title="纯文本显示代码">
              <div class="crayon-button-icon">
              </div>
             </div>
             <div class="crayon-button crayon-wrap-button" title="切换自动换行">
              <div class="crayon-button-icon">
              </div>
             </div>
             <div class="crayon-button crayon-expand-button" title="点击展开代码">
              <div class="crayon-button-icon">
              </div>
             </div>
             <div class="crayon-button crayon-copy-button" title="复制代码">
              <div class="crayon-button-icon">
              </div>
             </div>
             <div class="crayon-button crayon-popup-button" title="在新窗口中显示代码">
              <div class="crayon-button-icon">
              </div>
             </div>
            </div>
           </div>
           <div class="crayon-info" style="min-height: 16.8px !important; line-height: 16.8px !important;">
           </div>
           <div class="crayon-plain-wrap">
            <textarea class="crayon-plain print-no" data-settings="dblclick" readonly="" style="-moz-tab-size:4; -o-tab-size:4; -webkit-tab-size:4; tab-size:4; font-size: 12px !important; line-height: 15px !important;" wrap="soft">
             &lt;span class="hljs-comment"&gt;# Author: Gael Varoquaux &amp;lt;gael dot varoquaux at normalesup dot org&amp;gt;&lt;/span&gt;
&lt;span class="hljs-comment"&gt;# License: BSD 3 clause&lt;/span&gt;
&lt;span class="hljs-comment"&gt;# Standard scientific Python imports&lt;/span&gt;
&lt;span class="hljs-keyword"&gt;import&lt;/span&gt; matplotlib.pyplot &lt;span class="hljs-keyword"&gt;as&lt;/span&gt; plt
&lt;span class="hljs-comment"&gt;# Import datasets, classifiers and performance metrics&lt;/span&gt;
&lt;span class="hljs-keyword"&gt;from&lt;/span&gt; sklearn &lt;span class="hljs-keyword"&gt;import&lt;/span&gt; datasets, svm, metrics
&lt;span class="hljs-comment"&gt;# The digits dataset&lt;/span&gt;
digits = datasets.load_digits()
&lt;span class="hljs-comment"&gt;# The data that we are interested in is made of 8x8 images of digits, let's&lt;/span&gt;
&lt;span class="hljs-comment"&gt;# have a look at the first 3 images, stored in the `images` attribute of the&lt;/span&gt;
&lt;span class="hljs-comment"&gt;# dataset.  If we were working from image files, we could load them using&lt;/span&gt;
&lt;span class="hljs-comment"&gt;# pylab.imread.  Note that each image must have the same size. For these&lt;/span&gt;
&lt;span class="hljs-comment"&gt;# images, we know which digit they represent: it is given in the 'target' of&lt;/span&gt;
&lt;span class="hljs-comment"&gt;# the dataset.&lt;/span&gt;
images_and_labels = list(zip(digits.images, digits.target))
&lt;span class="hljs-keyword"&gt;for&lt;/span&gt; index, (image, label) &lt;span class="hljs-keyword"&gt;in&lt;/span&gt; enumerate(images_and_labels[:&lt;span class="hljs-number"&gt;4&lt;/span&gt;]):
    plt.subplot(&lt;span class="hljs-number"&gt;2&lt;/span&gt;, &lt;span class="hljs-number"&gt;4&lt;/span&gt;, index + &lt;span class="hljs-number"&gt;1&lt;/span&gt;)
    plt.axis(&lt;span class="hljs-string"&gt;'off'&lt;/span&gt;)
    plt.imshow(image, cmap=plt.cm.gray_r, interpolation=&lt;span class="hljs-string"&gt;'nearest'&lt;/span&gt;)
    plt.title(&lt;span class="hljs-string"&gt;'Training: %i'&lt;/span&gt; % label)
&lt;span class="hljs-comment"&gt;# To apply a classifier on this data, we need to flatten the image, to&lt;/span&gt;
&lt;span class="hljs-comment"&gt;# turn the data in a (samples, feature) matrix:&lt;/span&gt;
n_samples = len(digits.images)
data = digits.images.reshape((n_samples, -&lt;span class="hljs-number"&gt;1&lt;/span&gt;))
&lt;span class="hljs-comment"&gt;# Create a classifier: a support vector classifier&lt;/span&gt;
classifier = svm.SVC(gamma=&lt;span class="hljs-number"&gt;0.001&lt;/span&gt;)
&lt;span class="hljs-comment"&gt;# We learn the digits on the first half of the digits&lt;/span&gt;
classifier.fit(data[:n_samples / &lt;span class="hljs-number"&gt;2&lt;/span&gt;], digits.target[:n_samples / &lt;span class="hljs-number"&gt;2&lt;/span&gt;])
&lt;span class="hljs-comment"&gt;# Now predict the value of the digit on the second half:&lt;/span&gt;
expected = digits.target[n_samples / &lt;span class="hljs-number"&gt;2&lt;/span&gt;:]
predicted = classifier.predict(data[n_samples / &lt;span class="hljs-number"&gt;2&lt;/span&gt;:])
print(&lt;span class="hljs-string"&gt;"Classification report for classifier %s:\n%s\n"&lt;/span&gt;
      % (classifier, metrics.classification_report(expected, predicted)))
print(&lt;span class="hljs-string"&gt;"Confusion matrix:\n%s"&lt;/span&gt; % metrics.confusion_matrix(expected, predicted))
images_and_predictions = list(zip(digits.images[n_samples / &lt;span class="hljs-number"&gt;2&lt;/span&gt;:], predicted))
&lt;span class="hljs-keyword"&gt;for&lt;/span&gt; index, (image, prediction) &lt;span class="hljs-keyword"&gt;in&lt;/span&gt; enumerate(images_and_predictions[:&lt;span class="hljs-number"&gt;4&lt;/span&gt;]):
    plt.subplot(&lt;span class="hljs-number"&gt;2&lt;/span&gt;, &lt;span class="hljs-number"&gt;4&lt;/span&gt;, index + &lt;span class="hljs-number"&gt;5&lt;/span&gt;)
    plt.axis(&lt;span class="hljs-string"&gt;'off'&lt;/span&gt;)
    plt.imshow(image, cmap=plt.cm.gray_r, interpolation=&lt;span class="hljs-string"&gt;'nearest'&lt;/span&gt;)
    plt.title(&lt;span class="hljs-string"&gt;'Prediction: %i'&lt;/span&gt; % prediction)
plt.show()
            </textarea>
           </div>
           <div class="crayon-main" style="">
            <table class="crayon-table">
             <tbody>
              <tr class="crayon-row">
               <td class="crayon-nums " data-settings="show">
                <div class="crayon-nums-content" style="font-size: 12px !important; line-height: 15px !important;">
                 <div class="crayon-num" data-line="crayon-57685cbe83e1c324969911-1">
                  1
                 </div>
                 <div class="crayon-num crayon-striped-num" data-line="crayon-57685cbe83e1c324969911-2">
                  2
                 </div>
                 <div class="crayon-num" data-line="crayon-57685cbe83e1c324969911-3">
                  3
                 </div>
                 <div class="crayon-num crayon-striped-num" data-line="crayon-57685cbe83e1c324969911-4">
                  4
                 </div>
                 <div class="crayon-num" data-line="crayon-57685cbe83e1c324969911-5">
                  5
                 </div>
                 <div class="crayon-num crayon-striped-num" data-line="crayon-57685cbe83e1c324969911-6">
                  6
                 </div>
                 <div class="crayon-num" data-line="crayon-57685cbe83e1c324969911-7">
                  7
                 </div>
                 <div class="crayon-num crayon-striped-num" data-line="crayon-57685cbe83e1c324969911-8">
                  8
                 </div>
                 <div class="crayon-num" data-line="crayon-57685cbe83e1c324969911-9">
                  9
                 </div>
                 <div class="crayon-num crayon-striped-num" data-line="crayon-57685cbe83e1c324969911-10">
                  10
                 </div>
                 <div class="crayon-num" data-line="crayon-57685cbe83e1c324969911-11">
                  11
                 </div>
                 <div class="crayon-num crayon-striped-num" data-line="crayon-57685cbe83e1c324969911-12">
                  12
                 </div>
                 <div class="crayon-num" data-line="crayon-57685cbe83e1c324969911-13">
                  13
                 </div>
                 <div class="crayon-num crayon-striped-num" data-line="crayon-57685cbe83e1c324969911-14">
                  14
                 </div>
                 <div class="crayon-num" data-line="crayon-57685cbe83e1c324969911-15">
                  15
                 </div>
                 <div class="crayon-num crayon-striped-num" data-line="crayon-57685cbe83e1c324969911-16">
                  16
                 </div>
                 <div class="crayon-num" data-line="crayon-57685cbe83e1c324969911-17">
                  17
                 </div>
                 <div class="crayon-num crayon-striped-num" data-line="crayon-57685cbe83e1c324969911-18">
                  18
                 </div>
                 <div class="crayon-num" data-line="crayon-57685cbe83e1c324969911-19">
                  19
                 </div>
                 <div class="crayon-num crayon-striped-num" data-line="crayon-57685cbe83e1c324969911-20">
                  20
                 </div>
                 <div class="crayon-num" data-line="crayon-57685cbe83e1c324969911-21">
                  21
                 </div>
                 <div class="crayon-num crayon-striped-num" data-line="crayon-57685cbe83e1c324969911-22">
                  22
                 </div>
                 <div class="crayon-num" data-line="crayon-57685cbe83e1c324969911-23">
                  23
                 </div>
                 <div class="crayon-num crayon-striped-num" data-line="crayon-57685cbe83e1c324969911-24">
                  24
                 </div>
                 <div class="crayon-num" data-line="crayon-57685cbe83e1c324969911-25">
                  25
                 </div>
                 <div class="crayon-num crayon-striped-num" data-line="crayon-57685cbe83e1c324969911-26">
                  26
                 </div>
                 <div class="crayon-num" data-line="crayon-57685cbe83e1c324969911-27">
                  27
                 </div>
                 <div class="crayon-num crayon-striped-num" data-line="crayon-57685cbe83e1c324969911-28">
                  28
                 </div>
                 <div class="crayon-num" data-line="crayon-57685cbe83e1c324969911-29">
                  29
                 </div>
                 <div class="crayon-num crayon-striped-num" data-line="crayon-57685cbe83e1c324969911-30">
                  30
                 </div>
                 <div class="crayon-num" data-line="crayon-57685cbe83e1c324969911-31">
                  31
                 </div>
                 <div class="crayon-num crayon-striped-num" data-line="crayon-57685cbe83e1c324969911-32">
                  32
                 </div>
                 <div class="crayon-num" data-line="crayon-57685cbe83e1c324969911-33">
                  33
                 </div>
                 <div class="crayon-num crayon-striped-num" data-line="crayon-57685cbe83e1c324969911-34">
                  34
                 </div>
                 <div class="crayon-num" data-line="crayon-57685cbe83e1c324969911-35">
                  35
                 </div>
                 <div class="crayon-num crayon-striped-num" data-line="crayon-57685cbe83e1c324969911-36">
                  36
                 </div>
                 <div class="crayon-num" data-line="crayon-57685cbe83e1c324969911-37">
                  37
                 </div>
                 <div class="crayon-num crayon-striped-num" data-line="crayon-57685cbe83e1c324969911-38">
                  38
                 </div>
                 <div class="crayon-num" data-line="crayon-57685cbe83e1c324969911-39">
                  39
                 </div>
                 <div class="crayon-num crayon-striped-num" data-line="crayon-57685cbe83e1c324969911-40">
                  40
                 </div>
                 <div class="crayon-num" data-line="crayon-57685cbe83e1c324969911-41">
                  41
                 </div>
                </div>
               </td>
               <td class="crayon-code">
                <div class="crayon-pre" style="font-size: 12px !important; line-height: 15px !important; -moz-tab-size:4; -o-tab-size:4; -webkit-tab-size:4; tab-size:4;">
                 <div class="crayon-line" id="crayon-57685cbe83e1c324969911-1">
                  <span class="crayon-o">
                   &lt;
                  </span>
                  <span class="crayon-e">
                   span
                  </span>
                  <span class="crayon-t">
                   class
                  </span>
                  <span class="crayon-o">
                   =
                  </span>
                  <span class="crayon-s">
                   "hljs-comment"
                  </span>
                  <span class="crayon-o">
                   &gt;
                  </span>
                  <span class="crayon-p">
                   # Author: Gael Varoquaux &amp;lt;gael dot varoquaux at normalesup dot org&amp;gt;&lt;/span&gt;
                  </span>
                 </div>
                 <div class="crayon-line crayon-striped-line" id="crayon-57685cbe83e1c324969911-2">
                  <span class="crayon-o">
                   &lt;
                  </span>
                  <span class="crayon-e">
                   span
                  </span>
                  <span class="crayon-t">
                   class
                  </span>
                  <span class="crayon-o">
                   =
                  </span>
                  <span class="crayon-s">
                   "hljs-comment"
                  </span>
                  <span class="crayon-o">
                   &gt;
                  </span>
                  <span class="crayon-p">
                   # License: BSD 3 clause&lt;/span&gt;
                  </span>
                 </div>
                 <div class="crayon-line" id="crayon-57685cbe83e1c324969911-3">
                  <span class="crayon-o">
                   &lt;
                  </span>
                  <span class="crayon-e">
                   span
                  </span>
                  <span class="crayon-t">
                   class
                  </span>
                  <span class="crayon-o">
                   =
                  </span>
                  <span class="crayon-s">
                   "hljs-comment"
                  </span>
                  <span class="crayon-o">
                   &gt;
                  </span>
                  <span class="crayon-p">
                   # Standard scientific Python imports&lt;/span&gt;
                  </span>
                 </div>
                 <div class="crayon-line crayon-striped-line" id="crayon-57685cbe83e1c324969911-4">
                  <span class="crayon-o">
                   &lt;
                  </span>
                  <span class="crayon-e">
                   span
                  </span>
                  <span class="crayon-t">
                   class
                  </span>
                  <span class="crayon-o">
                   =
                  </span>
                  <span class="crayon-s">
                   "hljs-keyword"
                  </span>
                  <span class="crayon-o">
                   &gt;
                  </span>
                  <span class="crayon-v">
                   import
                  </span>
                  <span class="crayon-o">
                   &lt;
                  </span>
                  <span class="crayon-o">
                   /
                  </span>
                  <span class="crayon-v">
                   span
                  </span>
                  <span class="crayon-o">
                   &gt;
                  </span>
                  <span class="crayon-h">
                  </span>
                  <span class="crayon-v">
                   matplotlib
                  </span>
                  <span class="crayon-sy">
                   .
                  </span>
                  <span class="crayon-v">
                   pyplot
                  </span>
                  <span class="crayon-h">
                  </span>
                  <span class="crayon-o">
                   &lt;
                  </span>
                  <span class="crayon-e">
                   span
                  </span>
                  <span class="crayon-t">
                   class
                  </span>
                  <span class="crayon-o">
                   =
                  </span>
                  <span class="crayon-s">
                   "hljs-keyword"
                  </span>
                  <span class="crayon-o">
                   &gt;
                  </span>
                  <span class="crayon-st">
                   as
                  </span>
                  <span class="crayon-o">
                   &lt;
                  </span>
                  <span class="crayon-o">
                   /
                  </span>
                  <span class="crayon-v">
                   span
                  </span>
                  <span class="crayon-o">
                   &gt;
                  </span>
                  <span class="crayon-h">
                  </span>
                  <span class="crayon-v">
                   plt
                  </span>
                 </div>
                 <div class="crayon-line" id="crayon-57685cbe83e1c324969911-5">
                  <span class="crayon-o">
                   &lt;
                  </span>
                  <span class="crayon-e">
                   span
                  </span>
                  <span class="crayon-t">
                   class
                  </span>
                  <span class="crayon-o">
                   =
                  </span>
                  <span class="crayon-s">
                   "hljs-comment"
                  </span>
                  <span class="crayon-o">
                   &gt;
                  </span>
                  <span class="crayon-p">
                   # Import datasets, classifiers and performance metrics&lt;/span&gt;
                  </span>
                 </div>
                 <div class="crayon-line crayon-striped-line" id="crayon-57685cbe83e1c324969911-6">
                  <span class="crayon-o">
                   &lt;
                  </span>
                  <span class="crayon-e">
                   span
                  </span>
                  <span class="crayon-t">
                   class
                  </span>
                  <span class="crayon-o">
                   =
                  </span>
                  <span class="crayon-s">
                   "hljs-keyword"
                  </span>
                  <span class="crayon-o">
                   &gt;
                  </span>
                  <span class="crayon-v">
                   from
                  </span>
                  <span class="crayon-o">
                   &lt;
                  </span>
                  <span class="crayon-o">
                   /
                  </span>
                  <span class="crayon-v">
                   span
                  </span>
                  <span class="crayon-o">
                   &gt;
                  </span>
                  <span class="crayon-h">
                  </span>
                  <span class="crayon-v">
                   sklearn
                  </span>
                  <span class="crayon-h">
                  </span>
                  <span class="crayon-o">
                   &lt;
                  </span>
                  <span class="crayon-e">
                   span
                  </span>
                  <span class="crayon-t">
                   class
                  </span>
                  <span class="crayon-o">
                   =
                  </span>
                  <span class="crayon-s">
                   "hljs-keyword"
                  </span>
                  <span class="crayon-o">
                   &gt;
                  </span>
                  <span class="crayon-v">
                   import
                  </span>
                  <span class="crayon-o">
                   &lt;
                  </span>
                  <span class="crayon-o">
                   /
                  </span>
                  <span class="crayon-v">
                   span
                  </span>
                  <span class="crayon-o">
                   &gt;
                  </span>
                  <span class="crayon-h">
                  </span>
                  <span class="crayon-v">
                   datasets
                  </span>
                  <span class="crayon-sy">
                   ,
                  </span>
                  <span class="crayon-h">
                  </span>
                  <span class="crayon-v">
                   svm
                  </span>
                  <span class="crayon-sy">
                   ,
                  </span>
                  <span class="crayon-h">
                  </span>
                  <span class="crayon-v">
                   metrics
                  </span>
                 </div>
                 <div class="crayon-line" id="crayon-57685cbe83e1c324969911-7">
                  <span class="crayon-o">
                   &lt;
                  </span>
                  <span class="crayon-e">
                   span
                  </span>
                  <span class="crayon-t">
                   class
                  </span>
                  <span class="crayon-o">
                   =
                  </span>
                  <span class="crayon-s">
                   "hljs-comment"
                  </span>
                  <span class="crayon-o">
                   &gt;
                  </span>
                  <span class="crayon-p">
                   # The digits dataset&lt;/span&gt;
                  </span>
                 </div>
                 <div class="crayon-line crayon-striped-line" id="crayon-57685cbe83e1c324969911-8">
                  <span class="crayon-v">
                   digits
                  </span>
                  <span class="crayon-h">
                  </span>
                  <span class="crayon-o">
                   =
                  </span>
                  <span class="crayon-h">
                  </span>
                  <span class="crayon-v">
                   datasets
                  </span>
                  <span class="crayon-sy">
                   .
                  </span>
                  <span class="crayon-e">
                   load_digits
                  </span>
                  <span class="crayon-sy">
                   (
                  </span>
                  <span class="crayon-sy">
                   )
                  </span>
                 </div>
                 <div class="crayon-line" id="crayon-57685cbe83e1c324969911-9">
                  <span class="crayon-o">
                   &lt;
                  </span>
                  <span class="crayon-e">
                   span
                  </span>
                  <span class="crayon-t">
                   class
                  </span>
                  <span class="crayon-o">
                   =
                  </span>
                  <span class="crayon-s">
                   "hljs-comment"
                  </span>
                  <span class="crayon-o">
                   &gt;
                  </span>
                  <span class="crayon-p">
                   # The data that we are interested in is made of 8x8 images of digits, let's&lt;/span&gt;
                  </span>
                 </div>
                 <div class="crayon-line crayon-striped-line" id="crayon-57685cbe83e1c324969911-10">
                  <span class="crayon-o">
                   &lt;
                  </span>
                  <span class="crayon-e">
                   span
                  </span>
                  <span class="crayon-t">
                   class
                  </span>
                  <span class="crayon-o">
                   =
                  </span>
                  <span class="crayon-s">
                   "hljs-comment"
                  </span>
                  <span class="crayon-o">
                   &gt;
                  </span>
                  <span class="crayon-p">
                   # have a look at the first 3 images, stored in the `images` attribute of the&lt;/span&gt;
                  </span>
                 </div>
                 <div class="crayon-line" id="crayon-57685cbe83e1c324969911-11">
                  <span class="crayon-o">
                   &lt;
                  </span>
                  <span class="crayon-e">
                   span
                  </span>
                  <span class="crayon-t">
                   class
                  </span>
                  <span class="crayon-o">
                   =
                  </span>
                  <span class="crayon-s">
                   "hljs-comment"
                  </span>
                  <span class="crayon-o">
                   &gt;
                  </span>
                  <span class="crayon-p">
                   # dataset.  If we were working from image files, we could load them using&lt;/span&gt;
                  </span>
                 </div>
                 <div class="crayon-line crayon-striped-line" id="crayon-57685cbe83e1c324969911-12">
                  <span class="crayon-o">
                   &lt;
                  </span>
                  <span class="crayon-e">
                   span
                  </span>
                  <span class="crayon-t">
                   class
                  </span>
                  <span class="crayon-o">
                   =
                  </span>
                  <span class="crayon-s">
                   "hljs-comment"
                  </span>
                  <span class="crayon-o">
                   &gt;
                  </span>
                  <span class="crayon-p">
                   # pylab.imread.  Note that each image must have the same size. For these&lt;/span&gt;
                  </span>
                 </div>
                 <div class="crayon-line" id="crayon-57685cbe83e1c324969911-13">
                  <span class="crayon-o">
                   &lt;
                  </span>
                  <span class="crayon-e">
                   span
                  </span>
                  <span class="crayon-t">
                   class
                  </span>
                  <span class="crayon-o">
                   =
                  </span>
                  <span class="crayon-s">
                   "hljs-comment"
                  </span>
                  <span class="crayon-o">
                   &gt;
                  </span>
                  <span class="crayon-p">
                   # images, we know which digit they represent: it is given in the 'target' of&lt;/span&gt;
                  </span>
                 </div>
                 <div class="crayon-line crayon-striped-line" id="crayon-57685cbe83e1c324969911-14">
                  <span class="crayon-o">
                   &lt;
                  </span>
                  <span class="crayon-e">
                   span
                  </span>
                  <span class="crayon-t">
                   class
                  </span>
                  <span class="crayon-o">
                   =
                  </span>
                  <span class="crayon-s">
                   "hljs-comment"
                  </span>
                  <span class="crayon-o">
                   &gt;
                  </span>
                  <span class="crayon-p">
                   # the dataset.&lt;/span&gt;
                  </span>
                 </div>
                 <div class="crayon-line" id="crayon-57685cbe83e1c324969911-15">
                  <span class="crayon-v">
                   images_and_labels
                  </span>
                  <span class="crayon-h">
                  </span>
                  <span class="crayon-o">
                   =
                  </span>
                  <span class="crayon-h">
                  </span>
                  <span class="crayon-e">
                   list
                  </span>
                  <span class="crayon-sy">
                   (
                  </span>
                  <span class="crayon-e">
                   zip
                  </span>
                  <span class="crayon-sy">
                   (
                  </span>
                  <span class="crayon-v">
                   digits
                  </span>
                  <span class="crayon-sy">
                   .
                  </span>
                  <span class="crayon-v">
                   images
                  </span>
                  <span class="crayon-sy">
                   ,
                  </span>
                  <span class="crayon-h">
                  </span>
                  <span class="crayon-v">
                   digits
                  </span>
                  <span class="crayon-sy">
                   .
                  </span>
                  <span class="crayon-v">
                   target
                  </span>
                  <span class="crayon-sy">
                   )
                  </span>
                  <span class="crayon-sy">
                   )
                  </span>
                 </div>
                 <div class="crayon-line crayon-striped-line" id="crayon-57685cbe83e1c324969911-16">
                  <span class="crayon-o">
                   &lt;
                  </span>
                  <span class="crayon-e">
                   span
                  </span>
                  <span class="crayon-t">
                   class
                  </span>
                  <span class="crayon-o">
                   =
                  </span>
                  <span class="crayon-s">
                   "hljs-keyword"
                  </span>
                  <span class="crayon-o">
                   &gt;
                  </span>
                  <span class="crayon-st">
                   for
                  </span>
                  <span class="crayon-o">
                   &lt;
                  </span>
                  <span class="crayon-o">
                   /
                  </span>
                  <span class="crayon-v">
                   span
                  </span>
                  <span class="crayon-o">
                   &gt;
                  </span>
                  <span class="crayon-h">
                  </span>
                  <span class="crayon-v">
                   index
                  </span>
                  <span class="crayon-sy">
                   ,
                  </span>
                  <span class="crayon-h">
                  </span>
                  <span class="crayon-sy">
                   (
                  </span>
                  <span class="crayon-v">
                   image
                  </span>
                  <span class="crayon-sy">
                   ,
                  </span>
                  <span class="crayon-h">
                  </span>
                  <span class="crayon-v">
                   label
                  </span>
                  <span class="crayon-sy">
                   )
                  </span>
                  <span class="crayon-h">
                  </span>
                  <span class="crayon-o">
                   &lt;
                  </span>
                  <span class="crayon-e">
                   span
                  </span>
                  <span class="crayon-t">
                   class
                  </span>
                  <span class="crayon-o">
                   =
                  </span>
                  <span class="crayon-s">
                   "hljs-keyword"
                  </span>
                  <span class="crayon-o">
                   &gt;
                  </span>
                  <span class="crayon-st">
                   in
                  </span>
                  <span class="crayon-o">
                   &lt;
                  </span>
                  <span class="crayon-o">
                   /
                  </span>
                  <span class="crayon-v">
                   span
                  </span>
                  <span class="crayon-o">
                   &gt;
                  </span>
                  <span class="crayon-h">
                  </span>
                  <span class="crayon-e">
                   enumerate
                  </span>
                  <span class="crayon-sy">
                   (
                  </span>
                  <span class="crayon-v">
                   images_and_labels
                  </span>
                  <span class="crayon-sy">
                   [
                  </span>
                  <span class="crayon-o">
                   :
                  </span>
                  <span class="crayon-o">
                   &lt;
                  </span>
                  <span class="crayon-e">
                   span
                  </span>
                  <span class="crayon-t">
                   class
                  </span>
                  <span class="crayon-o">
                   =
                  </span>
                  <span class="crayon-s">
                   "hljs-number"
                  </span>
                  <span class="crayon-o">
                   &gt;
                  </span>
                  <span class="crayon-cn">
                   4
                  </span>
                  <span class="crayon-o">
                   &lt;
                  </span>
                  <span class="crayon-o">
                   /
                  </span>
                  <span class="crayon-v">
                   span
                  </span>
                  <span class="crayon-o">
                   &gt;
                  </span>
                  <span class="crayon-sy">
                   ]
                  </span>
                  <span class="crayon-sy">
                   )
                  </span>
                  <span class="crayon-o">
                   :
                  </span>
                 </div>
                 <div class="crayon-line" id="crayon-57685cbe83e1c324969911-17">
                  <span class="crayon-h">
                  </span>
                  <span class="crayon-v">
                   plt
                  </span>
                  <span class="crayon-sy">
                   .
                  </span>
                  <span class="crayon-e">
                   subplot
                  </span>
                  <span class="crayon-sy">
                   (
                  </span>
                  <span class="crayon-o">
                   &lt;
                  </span>
                  <span class="crayon-e">
                   span
                  </span>
                  <span class="crayon-t">
                   class
                  </span>
                  <span class="crayon-o">
                   =
                  </span>
                  <span class="crayon-s">
                   "hljs-number"
                  </span>
                  <span class="crayon-o">
                   &gt;
                  </span>
                  <span class="crayon-cn">
                   2
                  </span>
                  <span class="crayon-o">
                   &lt;
                  </span>
                  <span class="crayon-o">
                   /
                  </span>
                  <span class="crayon-v">
                   span
                  </span>
                  <span class="crayon-o">
                   &gt;
                  </span>
                  <span class="crayon-sy">
                   ,
                  </span>
                  <span class="crayon-h">
                  </span>
                  <span class="crayon-o">
                   &lt;
                  </span>
                  <span class="crayon-e">
                   span
                  </span>
                  <span class="crayon-t">
                   class
                  </span>
                  <span class="crayon-o">
                   =
                  </span>
                  <span class="crayon-s">
                   "hljs-number"
                  </span>
                  <span class="crayon-o">
                   &gt;
                  </span>
                  <span class="crayon-cn">
                   4
                  </span>
                  <span class="crayon-o">
                   &lt;
                  </span>
                  <span class="crayon-o">
                   /
                  </span>
                  <span class="crayon-v">
                   span
                  </span>
                  <span class="crayon-o">
                   &gt;
                  </span>
                  <span class="crayon-sy">
                   ,
                  </span>
                  <span class="crayon-h">
                  </span>
                  <span class="crayon-v">
                   index
                  </span>
                  <span class="crayon-h">
                  </span>
                  <span class="crayon-o">
                   +
                  </span>
                  <span class="crayon-h">
                  </span>
                  <span class="crayon-o">
                   &lt;
                  </span>
                  <span class="crayon-e">
                   span
                  </span>
                  <span class="crayon-t">
                   class
                  </span>
                  <span class="crayon-o">
                   =
                  </span>
                  <span class="crayon-s">
                   "hljs-number"
                  </span>
                  <span class="crayon-o">
                   &gt;
                  </span>
                  <span class="crayon-cn">
                   1
                  </span>
                  <span class="crayon-o">
                   &lt;
                  </span>
                  <span class="crayon-o">
                   /
                  </span>
                  <span class="crayon-v">
                   span
                  </span>
                  <span class="crayon-o">
                   &gt;
                  </span>
                  <span class="crayon-sy">
                   )
                  </span>
                 </div>
                 <div class="crayon-line crayon-striped-line" id="crayon-57685cbe83e1c324969911-18">
                  <span class="crayon-h">
                  </span>
                  <span class="crayon-v">
                   plt
                  </span>
                  <span class="crayon-sy">
                   .
                  </span>
                  <span class="crayon-e">
                   axis
                  </span>
                  <span class="crayon-sy">
                   (
                  </span>
                  <span class="crayon-o">
                   &lt;
                  </span>
                  <span class="crayon-e">
                   span
                  </span>
                  <span class="crayon-t">
                   class
                  </span>
                  <span class="crayon-o">
                   =
                  </span>
                  <span class="crayon-s">
                   "hljs-string"
                  </span>
                  <span class="crayon-o">
                   &gt;
                  </span>
                  <span class="crayon-s">
                   'off'
                  </span>
                  <span class="crayon-o">
                   &lt;
                  </span>
                  <span class="crayon-o">
                   /
                  </span>
                  <span class="crayon-v">
                   span
                  </span>
                  <span class="crayon-o">
                   &gt;
                  </span>
                  <span class="crayon-sy">
                   )
                  </span>
                 </div>
                 <div class="crayon-line" id="crayon-57685cbe83e1c324969911-19">
                  <span class="crayon-h">
                  </span>
                  <span class="crayon-v">
                   plt
                  </span>
                  <span class="crayon-sy">
                   .
                  </span>
                  <span class="crayon-e">
                   imshow
                  </span>
                  <span class="crayon-sy">
                   (
                  </span>
                  <span class="crayon-v">
                   image
                  </span>
                  <span class="crayon-sy">
                   ,
                  </span>
                  <span class="crayon-h">
                  </span>
                  <span class="crayon-v">
                   cmap
                  </span>
                  <span class="crayon-o">
                   =
                  </span>
                  <span class="crayon-v">
                   plt
                  </span>
                  <span class="crayon-sy">
                   .
                  </span>
                  <span class="crayon-v">
                   cm
                  </span>
                  <span class="crayon-sy">
                   .
                  </span>
                  <span class="crayon-v">
                   gray_r
                  </span>
                  <span class="crayon-sy">
                   ,
                  </span>
                  <span class="crayon-h">
                  </span>
                  <span class="crayon-v">
                   interpolation
                  </span>
                  <span class="crayon-o">
                   =
                  </span>
                  <span class="crayon-o">
                   &lt;
                  </span>
                  <span class="crayon-e">
                   span
                  </span>
                  <span class="crayon-t">
                   class
                  </span>
                  <span class="crayon-o">
                   =
                  </span>
                  <span class="crayon-s">
                   "hljs-string"
                  </span>
                  <span class="crayon-o">
                   &gt;
                  </span>
                  <span class="crayon-s">
                   'nearest'
                  </span>
                  <span class="crayon-o">
                   &lt;
                  </span>
                  <span class="crayon-o">
                   /
                  </span>
                  <span class="crayon-v">
                   span
                  </span>
                  <span class="crayon-o">
                   &gt;
                  </span>
                  <span class="crayon-sy">
                   )
                  </span>
                 </div>
                 <div class="crayon-line crayon-striped-line" id="crayon-57685cbe83e1c324969911-20">
                  <span class="crayon-h">
                  </span>
                  <span class="crayon-v">
                   plt
                  </span>
                  <span class="crayon-sy">
                   .
                  </span>
                  <span class="crayon-e">
                   title
                  </span>
                  <span class="crayon-sy">
                   (
                  </span>
                  <span class="crayon-o">
                   &lt;
                  </span>
                  <span class="crayon-e">
                   span
                  </span>
                  <span class="crayon-t">
                   class
                  </span>
                  <span class="crayon-o">
                   =
                  </span>
                  <span class="crayon-s">
                   "hljs-string"
                  </span>
                  <span class="crayon-o">
                   &gt;
                  </span>
                  <span class="crayon-s">
                   'Training: %i'
                  </span>
                  <span class="crayon-o">
                   &lt;
                  </span>
                  <span class="crayon-o">
                   /
                  </span>
                  <span class="crayon-v">
                   span
                  </span>
                  <span class="crayon-o">
                   &gt;
                  </span>
                  <span class="crayon-h">
                  </span>
                  <span class="crayon-o">
                   %
                  </span>
                  <span class="crayon-h">
                  </span>
                  <span class="crayon-v">
                   label
                  </span>
                  <span class="crayon-sy">
                   )
                  </span>
                 </div>
                 <div class="crayon-line" id="crayon-57685cbe83e1c324969911-21">
                  <span class="crayon-o">
                   &lt;
                  </span>
                  <span class="crayon-e">
                   span
                  </span>
                  <span class="crayon-t">
                   class
                  </span>
                  <span class="crayon-o">
                   =
                  </span>
                  <span class="crayon-s">
                   "hljs-comment"
                  </span>
                  <span class="crayon-o">
                   &gt;
                  </span>
                  <span class="crayon-p">
                   # To apply a classifier on this data, we need to flatten the image, to&lt;/span&gt;
                  </span>
                 </div>
                 <div class="crayon-line crayon-striped-line" id="crayon-57685cbe83e1c324969911-22">
                  <span class="crayon-o">
                   &lt;
                  </span>
                  <span class="crayon-e">
                   span
                  </span>
                  <span class="crayon-t">
                   class
                  </span>
                  <span class="crayon-o">
                   =
                  </span>
                  <span class="crayon-s">
                   "hljs-comment"
                  </span>
                  <span class="crayon-o">
                   &gt;
                  </span>
                  <span class="crayon-p">
                   # turn the data in a (samples, feature) matrix:&lt;/span&gt;
                  </span>
                 </div>
                 <div class="crayon-line" id="crayon-57685cbe83e1c324969911-23">
                  <span class="crayon-v">
                   n_samples
                  </span>
                  <span class="crayon-h">
                  </span>
                  <span class="crayon-o">
                   =
                  </span>
                  <span class="crayon-h">
                  </span>
                  <span class="crayon-e">
                   len
                  </span>
                  <span class="crayon-sy">
                   (
                  </span>
                  <span class="crayon-v">
                   digits
                  </span>
                  <span class="crayon-sy">
                   .
                  </span>
                  <span class="crayon-v">
                   images
                  </span>
                  <span class="crayon-sy">
                   )
                  </span>
                 </div>
                 <div class="crayon-line crayon-striped-line" id="crayon-57685cbe83e1c324969911-24">
                  <span class="crayon-v">
                   data
                  </span>
                  <span class="crayon-h">
                  </span>
                  <span class="crayon-o">
                   =
                  </span>
                  <span class="crayon-h">
                  </span>
                  <span class="crayon-v">
                   digits
                  </span>
                  <span class="crayon-sy">
                   .
                  </span>
                  <span class="crayon-v">
                   images
                  </span>
                  <span class="crayon-sy">
                   .
                  </span>
                  <span class="crayon-e">
                   reshape
                  </span>
                  <span class="crayon-sy">
                   (
                  </span>
                  <span class="crayon-sy">
                   (
                  </span>
                  <span class="crayon-v">
                   n_samples
                  </span>
                  <span class="crayon-sy">
                   ,
                  </span>
                  <span class="crayon-h">
                  </span>
                  <span class="crayon-o">
                   -
                  </span>
                  <span class="crayon-o">
                   &lt;
                  </span>
                  <span class="crayon-e">
                   span
                  </span>
                  <span class="crayon-t">
                   class
                  </span>
                  <span class="crayon-o">
                   =
                  </span>
                  <span class="crayon-s">
                   "hljs-number"
                  </span>
                  <span class="crayon-o">
                   &gt;
                  </span>
                  <span class="crayon-cn">
                   1
                  </span>
                  <span class="crayon-o">
                   &lt;
                  </span>
                  <span class="crayon-o">
                   /
                  </span>
                  <span class="crayon-v">
                   span
                  </span>
                  <span class="crayon-o">
                   &gt;
                  </span>
                  <span class="crayon-sy">
                   )
                  </span>
                  <span class="crayon-sy">
                   )
                  </span>
                 </div>
                 <div class="crayon-line" id="crayon-57685cbe83e1c324969911-25">
                  <span class="crayon-o">
                   &lt;
                  </span>
                  <span class="crayon-e">
                   span
                  </span>
                  <span class="crayon-t">
                   class
                  </span>
                  <span class="crayon-o">
                   =
                  </span>
                  <span class="crayon-s">
                   "hljs-comment"
                  </span>
                  <span class="crayon-o">
                   &gt;
                  </span>
                  <span class="crayon-p">
                   # Create a classifier: a support vector classifier&lt;/span&gt;
                  </span>
                 </div>
                 <div class="crayon-line crayon-striped-line" id="crayon-57685cbe83e1c324969911-26">
                  <span class="crayon-v">
                   classifier
                  </span>
                  <span class="crayon-h">
                  </span>
                  <span class="crayon-o">
                   =
                  </span>
                  <span class="crayon-h">
                  </span>
                  <span class="crayon-v">
                   svm
                  </span>
                  <span class="crayon-sy">
                   .
                  </span>
                  <span class="crayon-e">
                   SVC
                  </span>
                  <span class="crayon-sy">
                   (
                  </span>
                  <span class="crayon-v">
                   gamma
                  </span>
                  <span class="crayon-o">
                   =
                  </span>
                  <span class="crayon-o">
                   &lt;
                  </span>
                  <span class="crayon-e">
                   span
                  </span>
                  <span class="crayon-t">
                   class
                  </span>
                  <span class="crayon-o">
                   =
                  </span>
                  <span class="crayon-s">
                   "hljs-number"
                  </span>
                  <span class="crayon-o">
                   &gt;
                  </span>
                  <span class="crayon-cn">
                   0.001
                  </span>
                  <span class="crayon-o">
                   &lt;
                  </span>
                  <span class="crayon-o">
                   /
                  </span>
                  <span class="crayon-v">
                   span
                  </span>
                  <span class="crayon-o">
                   &gt;
                  </span>
                  <span class="crayon-sy">
                   )
                  </span>
                 </div>
                 <div class="crayon-line" id="crayon-57685cbe83e1c324969911-27">
                  <span class="crayon-o">
                   &lt;
                  </span>
                  <span class="crayon-e">
                   span
                  </span>
                  <span class="crayon-t">
                   class
                  </span>
                  <span class="crayon-o">
                   =
                  </span>
                  <span class="crayon-s">
                   "hljs-comment"
                  </span>
                  <span class="crayon-o">
                   &gt;
                  </span>
                  <span class="crayon-p">
                   # We learn the digits on the first half of the digits&lt;/span&gt;
                  </span>
                 </div>
                 <div class="crayon-line crayon-striped-line" id="crayon-57685cbe83e1c324969911-28">
                  <span class="crayon-v">
                   classifier
                  </span>
                  <span class="crayon-sy">
                   .
                  </span>
                  <span class="crayon-e">
                   fit
                  </span>
                  <span class="crayon-sy">
                   (
                  </span>
                  <span class="crayon-v">
                   data
                  </span>
                  <span class="crayon-sy">
                   [
                  </span>
                  <span class="crayon-o">
                   :
                  </span>
                  <span class="crayon-v">
                   n_samples
                  </span>
                  <span class="crayon-h">
                  </span>
                  <span class="crayon-o">
                   /
                  </span>
                  <span class="crayon-h">
                  </span>
                  <span class="crayon-o">
                   &lt;
                  </span>
                  <span class="crayon-e">
                   span
                  </span>
                  <span class="crayon-t">
                   class
                  </span>
                  <span class="crayon-o">
                   =
                  </span>
                  <span class="crayon-s">
                   "hljs-number"
                  </span>
                  <span class="crayon-o">
                   &gt;
                  </span>
                  <span class="crayon-cn">
                   2
                  </span>
                  <span class="crayon-o">
                   &lt;
                  </span>
                  <span class="crayon-o">
                   /
                  </span>
                  <span class="crayon-v">
                   span
                  </span>
                  <span class="crayon-o">
                   &gt;
                  </span>
                  <span class="crayon-sy">
                   ]
                  </span>
                  <span class="crayon-sy">
                   ,
                  </span>
                  <span class="crayon-h">
                  </span>
                  <span class="crayon-v">
                   digits
                  </span>
                  <span class="crayon-sy">
                   .
                  </span>
                  <span class="crayon-v">
                   target
                  </span>
                  <span class="crayon-sy">
                   [
                  </span>
                  <span class="crayon-o">
                   :
                  </span>
                  <span class="crayon-v">
                   n_samples
                  </span>
                  <span class="crayon-h">
                  </span>
                  <span class="crayon-o">
                   /
                  </span>
                  <span class="crayon-h">
                  </span>
                  <span class="crayon-o">
                   &lt;
                  </span>
                  <span class="crayon-e">
                   span
                  </span>
                  <span class="crayon-t">
                   class
                  </span>
                  <span class="crayon-o">
                   =
                  </span>
                  <span class="crayon-s">
                   "hljs-number"
                  </span>
                  <span class="crayon-o">
                   &gt;
                  </span>
                  <span class="crayon-cn">
                   2
                  </span>
                  <span class="crayon-o">
                   &lt;
                  </span>
                  <span class="crayon-o">
                   /
                  </span>
                  <span class="crayon-v">
                   span
                  </span>
                  <span class="crayon-o">
                   &gt;
                  </span>
                  <span class="crayon-sy">
                   ]
                  </span>
                  <span class="crayon-sy">
                   )
                  </span>
                 </div>
                 <div class="crayon-line" id="crayon-57685cbe83e1c324969911-29">
                  <span class="crayon-o">
                   &lt;
                  </span>
                  <span class="crayon-e">
                   span
                  </span>
                  <span class="crayon-t">
                   class
                  </span>
                  <span class="crayon-o">
                   =
                  </span>
                  <span class="crayon-s">
                   "hljs-comment"
                  </span>
                  <span class="crayon-o">
                   &gt;
                  </span>
                  <span class="crayon-p">
                   # Now predict the value of the digit on the second half:&lt;/span&gt;
                  </span>
                 </div>
                 <div class="crayon-line crayon-striped-line" id="crayon-57685cbe83e1c324969911-30">
                  <span class="crayon-v">
                   expected
                  </span>
                  <span class="crayon-h">
                  </span>
                  <span class="crayon-o">
                   =
                  </span>
                  <span class="crayon-h">
                  </span>
                  <span class="crayon-v">
                   digits
                  </span>
                  <span class="crayon-sy">
                   .
                  </span>
                  <span class="crayon-v">
                   target
                  </span>
                  <span class="crayon-sy">
                   [
                  </span>
                  <span class="crayon-v">
                   n_samples
                  </span>
                  <span class="crayon-h">
                  </span>
                  <span class="crayon-o">
                   /
                  </span>
                  <span class="crayon-h">
                  </span>
                  <span class="crayon-o">
                   &lt;
                  </span>
                  <span class="crayon-e">
                   span
                  </span>
                  <span class="crayon-t">
                   class
                  </span>
                  <span class="crayon-o">
                   =
                  </span>
                  <span class="crayon-s">
                   "hljs-number"
                  </span>
                  <span class="crayon-o">
                   &gt;
                  </span>
                  <span class="crayon-cn">
                   2
                  </span>
                  <span class="crayon-o">
                   &lt;
                  </span>
                  <span class="crayon-o">
                   /
                  </span>
                  <span class="crayon-v">
                   span
                  </span>
                  <span class="crayon-o">
                   &gt;
                  </span>
                  <span class="crayon-o">
                   :
                  </span>
                  <span class="crayon-sy">
                   ]
                  </span>
                 </div>
                 <div class="crayon-line" id="crayon-57685cbe83e1c324969911-31">
                  <span class="crayon-v">
                   predicted
                  </span>
                  <span class="crayon-h">
                  </span>
                  <span class="crayon-o">
                   =
                  </span>
                  <span class="crayon-h">
                  </span>
                  <span class="crayon-v">
                   classifier
                  </span>
                  <span class="crayon-sy">
                   .
                  </span>
                  <span class="crayon-e">
                   predict
                  </span>
                  <span class="crayon-sy">
                   (
                  </span>
                  <span class="crayon-v">
                   data
                  </span>
                  <span class="crayon-sy">
                   [
                  </span>
                  <span class="crayon-v">
                   n_samples
                  </span>
                  <span class="crayon-h">
                  </span>
                  <span class="crayon-o">
                   /
                  </span>
                  <span class="crayon-h">
                  </span>
                  <span class="crayon-o">
                   &lt;
                  </span>
                  <span class="crayon-e">
                   span
                  </span>
                  <span class="crayon-t">
                   class
                  </span>
                  <span class="crayon-o">
                   =
                  </span>
                  <span class="crayon-s">
                   "hljs-number"
                  </span>
                  <span class="crayon-o">
                   &gt;
                  </span>
                  <span class="crayon-cn">
                   2
                  </span>
                  <span class="crayon-o">
                   &lt;
                  </span>
                  <span class="crayon-o">
                   /
                  </span>
                  <span class="crayon-v">
                   span
                  </span>
                  <span class="crayon-o">
                   &gt;
                  </span>
                  <span class="crayon-o">
                   :
                  </span>
                  <span class="crayon-sy">
                   ]
                  </span>
                  <span class="crayon-sy">
                   )
                  </span>
                 </div>
                 <div class="crayon-line crayon-striped-line" id="crayon-57685cbe83e1c324969911-32">
                  <span class="crayon-e">
                   print
                  </span>
                  <span class="crayon-sy">
                   (
                  </span>
                  <span class="crayon-o">
                   &lt;
                  </span>
                  <span class="crayon-e">
                   span
                  </span>
                  <span class="crayon-t">
                   class
                  </span>
                  <span class="crayon-o">
                   =
                  </span>
                  <span class="crayon-s">
                   "hljs-string"
                  </span>
                  <span class="crayon-o">
                   &gt;
                  </span>
                  <span class="crayon-s">
                   "Classification report for classifier %s:\n%s\n"
                  </span>
                  <span class="crayon-o">
                   &lt;
                  </span>
                  <span class="crayon-o">
                   /
                  </span>
                  <span class="crayon-v">
                   span
                  </span>
                  <span class="crayon-o">
                   &gt;
                  </span>
                 </div>
                 <div class="crayon-line" id="crayon-57685cbe83e1c324969911-33">
                  <span class="crayon-h">
                  </span>
                  <span class="crayon-o">
                   %
                  </span>
                  <span class="crayon-h">
                  </span>
                  <span class="crayon-sy">
                   (
                  </span>
                  <span class="crayon-v">
                   classifier
                  </span>
                  <span class="crayon-sy">
                   ,
                  </span>
                  <span class="crayon-h">
                  </span>
                  <span class="crayon-v">
                   metrics
                  </span>
                  <span class="crayon-sy">
                   .
                  </span>
                  <span class="crayon-e">
                   classification_report
                  </span>
                  <span class="crayon-sy">
                   (
                  </span>
                  <span class="crayon-v">
                   expected
                  </span>
                  <span class="crayon-sy">
                   ,
                  </span>
                  <span class="crayon-h">
                  </span>
                  <span class="crayon-v">
                   predicted
                  </span>
                  <span class="crayon-sy">
                   )
                  </span>
                  <span class="crayon-sy">
                   )
                  </span>
                  <span class="crayon-sy">
                   )
                  </span>
                 </div>
                 <div class="crayon-line crayon-striped-line" id="crayon-57685cbe83e1c324969911-34">
                  <span class="crayon-e">
                   print
                  </span>
                  <span class="crayon-sy">
                   (
                  </span>
                  <span class="crayon-o">
                   &lt;
                  </span>
                  <span class="crayon-e">
                   span
                  </span>
                  <span class="crayon-t">
                   class
                  </span>
                  <span class="crayon-o">
                   =
                  </span>
                  <span class="crayon-s">
                   "hljs-string"
                  </span>
                  <span class="crayon-o">
                   &gt;
                  </span>
                  <span class="crayon-s">
                   "Confusion matrix:\n%s"
                  </span>
                  <span class="crayon-o">
                   &lt;
                  </span>
                  <span class="crayon-o">
                   /
                  </span>
                  <span class="crayon-v">
                   span
                  </span>
                  <span class="crayon-o">
                   &gt;
                  </span>
                  <span class="crayon-h">
                  </span>
                  <span class="crayon-o">
                   %
                  </span>
                  <span class="crayon-h">
                  </span>
                  <span class="crayon-v">
                   metrics
                  </span>
                  <span class="crayon-sy">
                   .
                  </span>
                  <span class="crayon-e">
                   confusion_matrix
                  </span>
                  <span class="crayon-sy">
                   (
                  </span>
                  <span class="crayon-v">
                   expected
                  </span>
                  <span class="crayon-sy">
                   ,
                  </span>
                  <span class="crayon-h">
                  </span>
                  <span class="crayon-v">
                   predicted
                  </span>
                  <span class="crayon-sy">
                   )
                  </span>
                  <span class="crayon-sy">
                   )
                  </span>
                 </div>
                 <div class="crayon-line" id="crayon-57685cbe83e1c324969911-35">
                  <span class="crayon-v">
                   images_and_predictions
                  </span>
                  <span class="crayon-h">
                  </span>
                  <span class="crayon-o">
                   =
                  </span>
                  <span class="crayon-h">
                  </span>
                  <span class="crayon-e">
                   list
                  </span>
                  <span class="crayon-sy">
                   (
                  </span>
                  <span class="crayon-e">
                   zip
                  </span>
                  <span class="crayon-sy">
                   (
                  </span>
                  <span class="crayon-v">
                   digits
                  </span>
                  <span class="crayon-sy">
                   .
                  </span>
                  <span class="crayon-v">
                   images
                  </span>
                  <span class="crayon-sy">
                   [
                  </span>
                  <span class="crayon-v">
                   n_samples
                  </span>
                  <span class="crayon-h">
                  </span>
                  <span class="crayon-o">
                   /
                  </span>
                  <span class="crayon-h">
                  </span>
                  <span class="crayon-o">
                   &lt;
                  </span>
                  <span class="crayon-e">
                   span
                  </span>
                  <span class="crayon-t">
                   class
                  </span>
                  <span class="crayon-o">
                   =
                  </span>
                  <span class="crayon-s">
                   "hljs-number"
                  </span>
                  <span class="crayon-o">
                   &gt;
                  </span>
                  <span class="crayon-cn">
                   2
                  </span>
                  <span class="crayon-o">
                   &lt;
                  </span>
                  <span class="crayon-o">
                   /
                  </span>
                  <span class="crayon-v">
                   span
                  </span>
                  <span class="crayon-o">
                   &gt;
                  </span>
                  <span class="crayon-o">
                   :
                  </span>
                  <span class="crayon-sy">
                   ]
                  </span>
                  <span class="crayon-sy">
                   ,
                  </span>
                  <span class="crayon-h">
                  </span>
                  <span class="crayon-v">
                   predicted
                  </span>
                  <span class="crayon-sy">
                   )
                  </span>
                  <span class="crayon-sy">
                   )
                  </span>
                 </div>
                 <div class="crayon-line crayon-striped-line" id="crayon-57685cbe83e1c324969911-36">
                  <span class="crayon-o">
                   &lt;
                  </span>
                  <span class="crayon-e">
                   span
                  </span>
                  <span class="crayon-t">
                   class
                  </span>
                  <span class="crayon-o">
                   =
                  </span>
                  <span class="crayon-s">
                   "hljs-keyword"
                  </span>
                  <span class="crayon-o">
                   &gt;
                  </span>
                  <span class="crayon-st">
                   for
                  </span>
                  <span class="crayon-o">
                   &lt;
                  </span>
                  <span class="crayon-o">
                   /
                  </span>
                  <span class="crayon-v">
                   span
                  </span>
                  <span class="crayon-o">
                   &gt;
                  </span>
                  <span class="crayon-h">
                  </span>
                  <span class="crayon-v">
                   index
                  </span>
                  <span class="crayon-sy">
                   ,
                  </span>
                  <span class="crayon-h">
                  </span>
                  <span class="crayon-sy">
                   (
                  </span>
                  <span class="crayon-v">
                   image
                  </span>
                  <span class="crayon-sy">
                   ,
                  </span>
                  <span class="crayon-h">
                  </span>
                  <span class="crayon-v">
                   prediction
                  </span>
                  <span class="crayon-sy">
                   )
                  </span>
                  <span class="crayon-h">
                  </span>
                  <span class="crayon-o">
                   &lt;
                  </span>
                  <span class="crayon-e">
                   span
                  </span>
                  <span class="crayon-t">
                   class
                  </span>
                  <span class="crayon-o">
                   =
                  </span>
                  <span class="crayon-s">
                   "hljs-keyword"
                  </span>
                  <span class="crayon-o">
                   &gt;
                  </span>
                  <span class="crayon-st">
                   in
                  </span>
                  <span class="crayon-o">
                   &lt;
                  </span>
                  <span class="crayon-o">
                   /
                  </span>
                  <span class="crayon-v">
                   span
                  </span>
                  <span class="crayon-o">
                   &gt;
                  </span>
                  <span class="crayon-h">
                  </span>
                  <span class="crayon-e">
                   enumerate
                  </span>
                  <span class="crayon-sy">
                   (
                  </span>
                  <span class="crayon-v">
                   images_and_predictions
                  </span>
                  <span class="crayon-sy">
                   [
                  </span>
                  <span class="crayon-o">
                   :
                  </span>
                  <span class="crayon-o">
                   &lt;
                  </span>
                  <span class="crayon-e">
                   span
                  </span>
                  <span class="crayon-t">
                   class
                  </span>
                  <span class="crayon-o">
                   =
                  </span>
                  <span class="crayon-s">
                   "hljs-number"
                  </span>
                  <span class="crayon-o">
                   &gt;
                  </span>
                  <span class="crayon-cn">
                   4
                  </span>
                  <span class="crayon-o">
                   &lt;
                  </span>
                  <span class="crayon-o">
                   /
                  </span>
                  <span class="crayon-v">
                   span
                  </span>
                  <span class="crayon-o">
                   &gt;
                  </span>
                  <span class="crayon-sy">
                   ]
                  </span>
                  <span class="crayon-sy">
                   )
                  </span>
                  <span class="crayon-o">
                   :
                  </span>
                 </div>
                 <div class="crayon-line" id="crayon-57685cbe83e1c324969911-37">
                  <span class="crayon-h">
                  </span>
                  <span class="crayon-v">
                   plt
                  </span>
                  <span class="crayon-sy">
                   .
                  </span>
                  <span class="crayon-e">
                   subplot
                  </span>
                  <span class="crayon-sy">
                   (
                  </span>
                  <span class="crayon-o">
                   &lt;
                  </span>
                  <span class="crayon-e">
                   span
                  </span>
                  <span class="crayon-t">
                   class
                  </span>
                  <span class="crayon-o">
                   =
                  </span>
                  <span class="crayon-s">
                   "hljs-number"
                  </span>
                  <span class="crayon-o">
                   &gt;
                  </span>
                  <span class="crayon-cn">
                   2
                  </span>
                  <span class="crayon-o">
                   &lt;
                  </span>
                  <span class="crayon-o">
                   /
                  </span>
                  <span class="crayon-v">
                   span
                  </span>
                  <span class="crayon-o">
                   &gt;
                  </span>
                  <span class="crayon-sy">
                   ,
                  </span>
                  <span class="crayon-h">
                  </span>
                  <span class="crayon-o">
                   &lt;
                  </span>
                  <span class="crayon-e">
                   span
                  </span>
                  <span class="crayon-t">
                   class
                  </span>
                  <span class="crayon-o">
                   =
                  </span>
                  <span class="crayon-s">
                   "hljs-number"
                  </span>
                  <span class="crayon-o">
                   &gt;
                  </span>
                  <span class="crayon-cn">
                   4
                  </span>
                  <span class="crayon-o">
                   &lt;
                  </span>
                  <span class="crayon-o">
                   /
                  </span>
                  <span class="crayon-v">
                   span
                  </span>
                  <span class="crayon-o">
                   &gt;
                  </span>
                  <span class="crayon-sy">
                   ,
                  </span>
                  <span class="crayon-h">
                  </span>
                  <span class="crayon-v">
                   index
                  </span>
                  <span class="crayon-h">
                  </span>
                  <span class="crayon-o">
                   +
                  </span>
                  <span class="crayon-h">
                  </span>
                  <span class="crayon-o">
                   &lt;
                  </span>
                  <span class="crayon-e">
                   span
                  </span>
                  <span class="crayon-t">
                   class
                  </span>
                  <span class="crayon-o">
                   =
                  </span>
                  <span class="crayon-s">
                   "hljs-number"
                  </span>
                  <span class="crayon-o">
                   &gt;
                  </span>
                  <span class="crayon-cn">
                   5
                  </span>
                  <span class="crayon-o">
                   &lt;
                  </span>
                  <span class="crayon-o">
                   /
                  </span>
                  <span class="crayon-v">
                   span
                  </span>
                  <span class="crayon-o">
                   &gt;
                  </span>
                  <span class="crayon-sy">
                   )
                  </span>
                 </div>
                 <div class="crayon-line crayon-striped-line" id="crayon-57685cbe83e1c324969911-38">
                  <span class="crayon-h">
                  </span>
                  <span class="crayon-v">
                   plt
                  </span>
                  <span class="crayon-sy">
                   .
                  </span>
                  <span class="crayon-e">
                   axis
                  </span>
                  <span class="crayon-sy">
                   (
                  </span>
                  <span class="crayon-o">
                   &lt;
                  </span>
                  <span class="crayon-e">
                   span
                  </span>
                  <span class="crayon-t">
                   class
                  </span>
                  <span class="crayon-o">
                   =
                  </span>
                  <span class="crayon-s">
                   "hljs-string"
                  </span>
                  <span class="crayon-o">
                   &gt;
                  </span>
                  <span class="crayon-s">
                   'off'
                  </span>
                  <span class="crayon-o">
                   &lt;
                  </span>
                  <span class="crayon-o">
                   /
                  </span>
                  <span class="crayon-v">
                   span
                  </span>
                  <span class="crayon-o">
                   &gt;
                  </span>
                  <span class="crayon-sy">
                   )
                  </span>
                 </div>
                 <div class="crayon-line" id="crayon-57685cbe83e1c324969911-39">
                  <span class="crayon-h">
                  </span>
                  <span class="crayon-v">
                   plt
                  </span>
                  <span class="crayon-sy">
                   .
                  </span>
                  <span class="crayon-e">
                   imshow
                  </span>
                  <span class="crayon-sy">
                   (
                  </span>
                  <span class="crayon-v">
                   image
                  </span>
                  <span class="crayon-sy">
                   ,
                  </span>
                  <span class="crayon-h">
                  </span>
                  <span class="crayon-v">
                   cmap
                  </span>
                  <span class="crayon-o">
                   =
                  </span>
                  <span class="crayon-v">
                   plt
                  </span>
                  <span class="crayon-sy">
                   .
                  </span>
                  <span class="crayon-v">
                   cm
                  </span>
                  <span class="crayon-sy">
                   .
                  </span>
                  <span class="crayon-v">
                   gray_r
                  </span>
                  <span class="crayon-sy">
                   ,
                  </span>
                  <span class="crayon-h">
                  </span>
                  <span class="crayon-v">
                   interpolation
                  </span>
                  <span class="crayon-o">
                   =
                  </span>
                  <span class="crayon-o">
                   &lt;
                  </span>
                  <span class="crayon-e">
                   span
                  </span>
                  <span class="crayon-t">
                   class
                  </span>
                  <span class="crayon-o">
                   =
                  </span>
                  <span class="crayon-s">
                   "hljs-string"
                  </span>
                  <span class="crayon-o">
                   &gt;
                  </span>
                  <span class="crayon-s">
                   'nearest'
                  </span>
                  <span class="crayon-o">
                   &lt;
                  </span>
                  <span class="crayon-o">
                   /
                  </span>
                  <span class="crayon-v">
                   span
                  </span>
                  <span class="crayon-o">
                   &gt;
                  </span>
                  <span class="crayon-sy">
                   )
                  </span>
                 </div>
                 <div class="crayon-line crayon-striped-line" id="crayon-57685cbe83e1c324969911-40">
                  <span class="crayon-h">
                  </span>
                  <span class="crayon-v">
                   plt
                  </span>
                  <span class="crayon-sy">
                   .
                  </span>
                  <span class="crayon-e">
                   title
                  </span>
                  <span class="crayon-sy">
                   (
                  </span>
                  <span class="crayon-o">
                   &lt;
                  </span>
                  <span class="crayon-e">
                   span
                  </span>
                  <span class="crayon-t">
                   class
                  </span>
                  <span class="crayon-o">
                   =
                  </span>
                  <span class="crayon-s">
                   "hljs-string"
                  </span>
                  <span class="crayon-o">
                   &gt;
                  </span>
                  <span class="crayon-s">
                   'Prediction: %i'
                  </span>
                  <span class="crayon-o">
                   &lt;
                  </span>
                  <span class="crayon-o">
                   /
                  </span>
                  <span class="crayon-v">
                   span
                  </span>
                  <span class="crayon-o">
                   &gt;
                  </span>
                  <span class="crayon-h">
                  </span>
                  <span class="crayon-o">
                   %
                  </span>
                  <span class="crayon-h">
                  </span>
                  <span class="crayon-v">
                   prediction
                  </span>
                  <span class="crayon-sy">
                   )
                  </span>
                 </div>
                 <div class="crayon-line" id="crayon-57685cbe83e1c324969911-41">
                  <span class="crayon-v">
                   plt
                  </span>
                  <span class="crayon-sy">
                   .
                  </span>
                  <span class="crayon-e">
                   show
                  </span>
                  <span class="crayon-sy">
                   (
                  </span>
                  <span class="crayon-sy">
                   )
                  </span>
                 </div>
                </div>
               </td>
              </tr>
             </tbody>
            </table>
           </div>
          </div>
          <!-- [Format Time: 0.0851 seconds] -->
         </li>
        </ul>
       </blockquote>
       <p>
        原文地址：
        <a href="http://scikit-learn.org/stable/tutorial/basic/tutorial.html">
         http://scikit-learn.org/stable/tutorial/basic/tutorial.html
        </a>
        <br/>
        翻译：Tacey Wong
       </p>
      </div>
      <div>
       <strong>
        注：转载文章均来自于公开网络，仅供学习使用，不会用于任何商业用途，如果侵犯到原作者的权益，请您与我们联系删除或者授权事宜，联系邮箱：contact@dataunion.org。转载数盟网站文章请注明原文章作者，否则产生的任何版权纠纷与数盟无关。
       </strong>
      </div>
      <!--content_text-->
      <div class="fenxian">
       <!-- JiaThis Button BEGIN -->
       <div class="jiathis_style_32x32">
        <p class="jiathis_button_weixin">
        </p>
        <p class="jiathis_button_tsina">
        </p>
        <p class="jiathis_button_qzone">
        </p>
        <p class="jiathis_button_cqq">
        </p>
        <p class="jiathis_button_tumblr">
        </p>
        <a class="jiathis jiathis_txt jtico jtico_jiathis" href="http://www.jiathis.com/share" target="_blank">
        </a>
        <p class="jiathis_counter_style">
        </p>
       </div>
       <!-- JiaThis Button END -->
      </div>
     </article>
     <!--content-->
     <!--相关文章-->
     <div class="xianguan">
      <div class="xianguantitle">
       相关文章！
      </div>
      <ul class="pic">
       <li>
        <a href="http://dataunion.org/20824.html">
         <img src="http://dataunion.org/wp-content/uploads/2015/09/t018630756a7e263b33-300x165.jpg"/>
        </a>
        <a class="link" href="http://dataunion.org/20824.html" rel="bookmark" title="如何判断一笔交易是否属于欺诈？你只是需要一点数据挖掘">
         如何判断一笔交易是否属于欺诈？你只是需要一点数据挖掘
        </a>
       </li>
       <li>
        <a href="http://dataunion.org/20820.html">
         <img src="http://dataunion.org/wp-content/uploads/2015/09/1-300x200.jpg"/>
        </a>
        <a class="link" href="http://dataunion.org/20820.html" rel="bookmark" title="人们对Python在企业级开发中的10大误解">
         人们对Python在企业级开发中的10大误解
        </a>
       </li>
       <li>
        <a href="http://dataunion.org/20811.html">
         <img src="http://dataunion.org/wp-content/uploads/2015/09/t0133fcacae8523307b_副本-300x200.jpg"/>
        </a>
        <a class="link" href="http://dataunion.org/20811.html" rel="bookmark" title="大神亲传：26条深度学习的金科玉律！">
         大神亲传：26条深度学习的金科玉律！
        </a>
       </li>
       <li>
        <a href="http://dataunion.org/20808.html">
         <img src="http://dataunion.org/wp-content/uploads/2015/09/640.webp-11-300x137.jpg"/>
        </a>
        <a class="link" href="http://dataunion.org/20808.html" rel="bookmark" title="我们是如何在一张地图上表现86万个数据的">
         我们是如何在一张地图上表现86万个数据的
        </a>
       </li>
      </ul>
     </div>
     <!--相关文章-->
     <div class="comment" id="comments">
      <!-- You can start editing here. -->
      <!-- If comments are open, but there are no comments. -->
      <div class="title">
       期待你一针见血的评论，Come on！
      </div>
      <div id="respond">
       <p>
        不用想啦，马上
        <a href="http://dataunion.org/wp-login.php?redirect_to=http%3A%2F%2Fdataunion.org%2F19483.html">
         "登录"
        </a>
        发表自已的想法.
       </p>
      </div>
     </div>
     <!-- .nav-single -->
    </div>
    <!--Container End-->
    <aside id="sitebar">
     <div class="sitebar_list2">
      <div class="wptag">
       <span class="tagtitle">
        热门标签+
       </span>
       <div class="tagg">
        <ul class="menu" id="menu-%e5%8f%8b%e6%83%85%e9%93%be%e6%8e%a5">
         <li class="menu-item menu-item-type-custom menu-item-object-custom menu-item-1605" id="menu-item-1605">
          <a href="http://taidizh.com/">
           泰迪智慧
          </a>
         </li>
         <li class="menu-item menu-item-type-custom menu-item-object-custom menu-item-20884" id="menu-item-20884">
          <a href="http://www.transwarp.cn/">
           星环科技
          </a>
         </li>
         <li class="menu-item menu-item-type-custom menu-item-object-custom menu-item-3538" id="menu-item-3538">
          <a href="http://datall.org/">
           珈和遥感
          </a>
         </li>
         <li class="menu-item menu-item-type-custom menu-item-object-custom menu-item-20888" id="menu-item-20888">
          <a href="http://www.chinahadoop.cn/">
           小象学院
          </a>
         </li>
        </ul>
       </div>
      </div>
     </div>
     <div class="sitebar_list">
      <div class="textwidget">
       <div align="center">
        <a href="http://study.163.com/course/courseMain.htm?courseId=991022" target="_blank">
         <img src="http://dataunion.org/wp-content/uploads/2016/03/dv.jpg"/>
        </a>
       </div>
      </div>
     </div>
     <div class="sitebar_list">
      <h4 class="sitebar_title">
       文章分类
      </h4>
      <div class="tagcloud">
       <a class="tag-link-44" href="http://dataunion.org/category/industry/demo" style="font-size: 10.204724409449pt;" title="4个话题">
        Demo展示
       </a>
       <a class="tag-link-31" href="http://dataunion.org/category/experts" style="font-size: 15.826771653543pt;" title="52个话题">
        专家团队
       </a>
       <a class="tag-link-870" href="http://dataunion.org/category/tech/ai" style="font-size: 19.795275590551pt;" title="273个话题">
        人工智能
       </a>
       <a class="tag-link-488" href="http://dataunion.org/category/%e5%8a%a0%e5%85%a5%e6%95%b0%e7%9b%9f" style="font-size: 8pt;" title="1个话题">
        加入数盟
       </a>
       <a class="tag-link-869" href="http://dataunion.org/category/tech/viz" style="font-size: 17.204724409449pt;" title="93个话题">
        可视化
       </a>
       <a class="tag-link-30" href="http://dataunion.org/category/partners" style="font-size: 10.645669291339pt;" title="5个话题">
        合作伙伴
       </a>
       <a class="tag-link-889" href="http://dataunion.org/category/parterc" style="font-size: 11.582677165354pt;" title="8个话题">
        合作会议
       </a>
       <a class="tag-link-104" href="http://dataunion.org/category/books" style="font-size: 12.96062992126pt;" title="15个话题">
        图书
       </a>
       <a class="tag-link-220" href="http://dataunion.org/category/tech/base" style="font-size: 19.850393700787pt;" title="281个话题">
        基础架构
       </a>
       <a class="tag-link-219" href="http://dataunion.org/category/tech/analysis" style="font-size: 19.409448818898pt;" title="232个话题">
        数据分析
       </a>
       <a class="tag-link-887" href="http://dataunion.org/category/tech/dm" style="font-size: 13.291338582677pt;" title="17个话题">
        数据挖掘
       </a>
       <a class="tag-link-34" href="http://dataunion.org/category/tech" style="font-size: 20.732283464567pt;" title="404个话题">
        文章
       </a>
       <a class="tag-link-1" href="http://dataunion.org/category/uncategorized" style="font-size: 22pt;" title="693个话题">
        未分类
       </a>
       <a class="tag-link-4" href="http://dataunion.org/category/events" style="font-size: 14.503937007874pt;" title="29个话题">
        活动
       </a>
       <a class="tag-link-890" href="http://dataunion.org/category/tech/%e6%b7%b1%e5%ba%a6%e5%ad%a6%e4%b9%a0" style="font-size: 10.204724409449pt;" title="4个话题">
        深度学习
       </a>
       <a class="tag-link-221" href="http://dataunion.org/category/tech/devl" style="font-size: 18.968503937008pt;" title="193个话题">
        编程语言
       </a>
       <a class="tag-link-888" href="http://dataunion.org/category/career" style="font-size: 15.661417322835pt;" title="48个话题">
        职业规划
       </a>
       <a class="tag-link-5" href="http://dataunion.org/category/jobs" style="font-size: 14.11811023622pt;" title="25个话题">
        职位
       </a>
       <a class="tag-link-871" href="http://dataunion.org/category/industry" style="font-size: 15.716535433071pt;" title="49个话题">
        行业
       </a>
       <a class="tag-link-613" href="http://dataunion.org/category/industry/case" style="font-size: 16.984251968504pt;" title="84个话题">
        行业应用
       </a>
       <a class="tag-link-885" href="http://dataunion.org/category/industry/news" style="font-size: 17.425196850394pt;" title="102个话题">
        行业资讯
       </a>
       <a class="tag-link-10" href="http://dataunion.org/category/training" style="font-size: 14.228346456693pt;" title="26个话题">
        课程
       </a>
       <a class="tag-link-16" href="http://dataunion.org/category/sources" style="font-size: 15.661417322835pt;" title="48个话题">
        资源
       </a>
      </div>
     </div>
     <div class="sitebar_list">
      <h4 class="sitebar_title">
       功能
      </h4>
      <ul>
       <li>
        <a href="http://dataunion.org/wp-login.php?action=register">
         注册
        </a>
       </li>
       <li>
        <a href="http://dataunion.org/wp-login.php">
         登录
        </a>
       </li>
       <li>
        <a href="http://dataunion.org/feed">
         文章
         <abbr title="Really Simple Syndication">
          RSS
         </abbr>
        </a>
       </li>
       <li>
        <a href="http://dataunion.org/comments/feed">
         评论
         <abbr title="Really Simple Syndication">
          RSS
         </abbr>
        </a>
       </li>
       <li>
        <a href="https://cn.wordpress.org/" title="基于WordPress，一个优美、先进的个人信息发布平台。">
         WordPress.org
        </a>
       </li>
      </ul>
     </div>
    </aside>
    <div class="clear">
    </div>
   </div>
   <!--main-->
   ﻿
   <footer id="dibu">
    <div class="about">
     <div class="right">
      <ul class="menu" id="menu-%e5%ba%95%e9%83%a8%e8%8f%9c%e5%8d%95">
       <li class="menu-item menu-item-type-taxonomy menu-item-object-category menu-item-18024" id="menu-item-18024">
        <a href="http://dataunion.org/category/partners">
         合作伙伴
        </a>
       </li>
       <li class="menu-item menu-item-type-post_type menu-item-object-page menu-item-20881" id="menu-item-20881">
        <a href="http://dataunion.org/contribute">
         文章投稿
        </a>
       </li>
       <li class="menu-item menu-item-type-taxonomy menu-item-object-category menu-item-20872" id="menu-item-20872">
        <a href="http://dataunion.org/category/%e5%8a%a0%e5%85%a5%e6%95%b0%e7%9b%9f">
         加入数盟
        </a>
       </li>
       <li class="menu-item menu-item-type-post_type menu-item-object-page menu-item-22441" id="menu-item-22441">
        <a href="http://dataunion.org/f-links">
         友情链接
        </a>
       </li>
       <li class="menu-item menu-item-type-post_type menu-item-object-page menu-item-20874" id="menu-item-20874">
        <a href="http://dataunion.org/aboutus">
         关于数盟
        </a>
       </li>
      </ul>
      <p class="banquan">
       数盟社区        ，
        做最棒的数据科学社区
      </p>
     </div>
     <div class="left">
      <ul class="bottomlist">
       <li>
        <a href="http://weibo.com/DataScientistUnion  " target="_blank" 　title="">
         <img src="http://dataunion.org/wp-content/themes/yzipi/images/weibo.png"/>
        </a>
       </li>
       <li>
        <a class="cd-popup-trigger" href="http://dataunion.org/19483.html#0">
         <img src="http://dataunion.org/wp-content/themes/yzipi/images/weixin.png"/>
        </a>
       </li>
      </ul>
      <div class="cd-popup">
       <div class="cd-popup-container">
        <h1>
         扫描二维码,加微信公众号
        </h1>
        <img src="http://dataunion.org/wp-content/themes/yzipi/images/2014-12-06-1515289049.png"/>
        <a class="cd-popup-close" href="http://dataunion.org/19483.html">
        </a>
       </div>
       <!-- cd-popup-container -->
      </div>
      <!-- cd-popup -->
     </div>
    </div>
    <!--about-->
    <div class="bottom">
     <a href="http://dataunion.org/">
      数盟社区
     </a>
     <a href="http://www.miitbeian.gov.cn/" rel="external nofollow" target="_blank">
      京ICP备14026740号
     </a>
     联系我们：
     <a href="mailto:contact@dataunion.org" target="_blank">
      contact@dataunion.org
     </a>
     <div class="tongji">
     </div>
     <!--bottom-->
     <div class="scroll" id="scroll" style="display:none;">
      ︿
     </div>
    </div>
   </footer>
   <!--dibu-->
  </div>
 </body>
</html>